kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
203 stars 113 forks source link

Require restart of klipper software after power on #233

Open shikon opened 2 years ago

shikon commented 2 years ago

After receiving print job via cura, PSU turns on successfully. Because of this the micro controller gets power and interferes with klipper via rpi4. Require restart of klipper, however adding this as a post turn on. It errors because octoprint tries to send gcode of the print file before klipper is restarted. Therefore it requires a delay before sending next command. Is it possible to add a delay not as Gcode, this won't work as klipper is not running yet.