Prevent drinks pouring a second time#6
Prevent drinks pouring a second time#6Danzibob wants to merge 2 commits intoHackerShackOfficial:masterfrom
Conversation
Because neater and I guess more efficient
|
@Danzibob This PR (if its the same found in your DoubleDrinkFix branch), prevents the user from pouring three drinks in a row. |
|
You've verified that this works? I had a weird issue where the program would crash when I retried to re-enable interrupts. I didn't get around to debugging it. |
|
Hello, I've modified my code: Now, drinks are not made twice and selecting drinks is working fine. Backend terminated or disconnected. Fatal Python error: Segmantation fault Any idea what's happening here? Thank you. |
Fixes #1
In our (slightly modified) version of this code, we found that disabling interrupts as soon as the button was pressed would prevent the bartender pouring 2 drinks consecutively without being prompted. Tested fairly thoroughly with both physical and remote (SSH) triggers.