MakerGear / MakerGear_OctoPrint_Setup

2 stars 12 forks source link

Fixed cooldown bug #4

Closed Garr-Garr closed 2 days ago

Garr-Garr commented 2 years ago

self.cooldown is a function that is repeated throughout various maintenance procedures in the plugin. By default this function would send GCode commands to power down both Tool_0 and Tool_1, which would result in the user receiving a warning message for sending "T0" and "T1" commands.

I added a simple if else statement that verifies how many extruders the active OctoPrint printer profile is using, then sends the appropriate cooldown script for the printer.