# Mainsail doesn't connect to Moonraker after Klipper update

**URL:** <https://klipper.discourse.group/t/mainsail-doesnt-connect-to-moonraker-after-klipper-update/15641>\
**Category:** General Discussion\
**Created:** [April 10, 2024, 2:16am UTC](https://klipper.discourse.group/t/mainsail-doesnt-connect-to-moonraker-after-klipper-update/15641 "2024-04-10T02:16:50Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![TheFuzzyGiggler](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/thefuzzygiggler/32/12313_2.png) [@TheFuzzyGiggler](https://klipper.discourse.group/u/TheFuzzyGiggler)\
**Post date:** [April 10, 2024, 1:06pm UTC](https://klipper.discourse.group/t/mainsail-doesnt-connect-to-moonraker-after-klipper-update/15641/6 "2024-04-10T13:06:05Z")

</div>

[manual\_stepper.zip](https://klipper.discourse.group/uploads/short-url/7aPjLAcPIIgD8Za1MlARo32fWbv.zip) (1.8 KB)

Okay, dealers choice, the previous one reverts back to before the change.

This one actually corrects the issue.

@koconnor - Sorry for the double tag, but I can confirm the newest update to manual\_stepper (the status function) causes Mainsail to hang when the webhooks try to get the stepper status cause there is an error.

I’ve messed with my branch of Klipper so don’t want to put in a PR and have to mess with another branch and making sure I take out unintentional changes.

I changed the following lines…

```auto
34 self.stepper_enable = self.printer.lookup_object('stepper_enable')

```

45-55

```auto
    def do_enable(self, enable):
        self.sync_print_time()
        if enable:
            for s in self.steppers:
                se = self.stepper_enable.lookup_enable(s.get_name())
                se.motor_enable(self.next_cmd_time)
        else:
            for s in self.steppers:
                se = self.stepper_enable.lookup_enable(s.get_name())
                se.motor_disable(self.next_cmd_time)
        self.sync_print_time()

```

108-110

```auto
    def get_status(self, eventtime):
        return {'position': self.rail.get_commanded_position(),
                'enabled': self.stepper_enable.lookup_enable(self.steppers[0].get_name()).is_motor_enabled()}

```

---

_[View the full topic](https://klipper.discourse.group/t/mainsail-doesnt-connect-to-moonraker-after-klipper-update/15641)._
