Led Status toggle each print when Auto Startup option selected #296

Open
opened 2020-03-07 16:53:19 +00:00 by zebons · 0 comments
zebons commented 2020-03-07 16:53:19 +00:00 (Migrated from github.com)

Hi,

I manage a led bar via GPIO and the Enclosure plugin. I select the Auto Startup option. So Leds are automaticly light on when print start and the item in the Enclosure plugin menu is put To Led On. However if I launch another print after the fist one (led are already on), the status for the led input in the menu toggles and is put to Led Off (the Leds are always ON). So the plgin seems to toggle the menu item each time whatever was the status before.
So if I want to shut off Led I have to select two time the item menu in that case.

image
Solution : Toggle the menu item only when the led is effectively toggle

Hi, I manage a led bar via GPIO and the Enclosure plugin. I select the Auto Startup option. So Leds are automaticly light on when print start and the item in the Enclosure plugin menu is put To Led On. However if I launch another print after the fist one (led are already on), the status for the led input in the menu toggles and is put to Led Off (the Leds are always ON). So the plgin seems to toggle the menu item each time whatever was the status before. So if I want to shut off Led I have to select two time the item menu in that case. ![image](https://user-images.githubusercontent.com/51046171/76147399-31822980-609c-11ea-8455-e8fcb47824d5.png) Solution : Toggle the menu item only when the led is effectively toggle
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#296