You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what I actually wanted to change is the delay between switching on the different lights (if they are switched too fast, it creates electrical disturbance).
I stumbled upon handle_wrong_input, which I did not really understand, a comment there would be needed.
Looking further, I saw that the main logic for the buttons is now very nice&clear but the lights (and bell) logic is still in the old non-async way (which is very hard to read). So I was thinking that it probably makes more sense to rewrite that code to an extra async lights module, similar to how Garage works, which will maybe also let us get rid of hacks like handle_wrong_input?
Having a lights/enable would be a nice side-effect, as probably not every installation has lights at every entrance? @fel115 how about your situation? Can you maybe help out here?
The text was updated successfully, but these errors were encountered:
I stumbled upon handle_wrong_input, which I did not really understand, a comment there would be needed.
I think the handle_wrong_input sets the buttons LEDs, if the input pin is wrong or a input timeout occurs.
Looking further, I saw that the main logic for the buttons is now very nice&clear but the lights (and bell) logic is still in the old non-async way (which is very hard to read). So I was thinking that it probably makes more sense to rewrite that code to an extra async lights module, similar to how Garage works, which will maybe also let us get rid of hacks like handle_wrong_input?
Yes, the idea was to do the reflector to async and then take a closer look into the modules, to remove non-async operations.
Having a lights/enable would be a nice side-effect, as probably not every installation has lights at every entrance? @fel115 how about your situation? Can you maybe help out here?
Hi,
what I actually wanted to change is the delay between switching on the different lights (if they are switched too fast, it creates electrical disturbance).
I stumbled upon handle_wrong_input, which I did not really understand, a comment there would be needed.
Looking further, I saw that the main logic for the buttons is now very nice&clear but the lights (and bell) logic is still in the old non-async way (which is very hard to read). So I was thinking that it probably makes more sense to rewrite that code to an extra async lights module, similar to how Garage works, which will maybe also let us get rid of hacks like handle_wrong_input?
Having a lights/enable would be a nice side-effect, as probably not every installation has lights at every entrance? @fel115 how about your situation? Can you maybe help out here?
The text was updated successfully, but these errors were encountered: