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
I am trying to implement multiple snoozeblocks on a Teensy 3.2.
With the code below I would expect to see the following sequence of events happen:
Teensy goes to sleep for 5 seconds
LED blinks
Teensy goes to sleep for 10 seconds
LED blinks
30 seconds delay
Teensy goes to sleep for 5 seconds
etc. etc.
What is actually happening is this:
Teensy goes to sleep for 10 seconds
LED blinks
Teensy goes to sleep for 10 seconds
LED blinks
30 seconds delay
Teensy goes to sleep for 10 seconds
etc etc.
I get the impression that the command to hibernate with "config1" gets changed to "config2". In fact, even if I change both of the hibernate commands to "Snooze.hibernate(config1);", the Teensy still sleeps for 10 seconds on end, meaning that in the definition of the snoozeblocks, the second SnoozeBlock is probably overwriting the first SnoozeBlock. I'm guessing this is a bug, right? Does anyone know a solution? Many thanks! 🙄🚀
The text was updated successfully, but these errors were encountered:
daanvV
changed the title
Snoozeblock overwritten when using Multiple SnoozeBlocks in script
Snoozeblock overwritten when using multiple SnoozeBlocks in script
Apr 15, 2021
Hello!
I am trying to implement multiple snoozeblocks on a Teensy 3.2.
With the code below I would expect to see the following sequence of events happen:
What is actually happening is this:
I get the impression that the command to hibernate with "config1" gets changed to "config2". In fact, even if I change both of the hibernate commands to "Snooze.hibernate(config1);", the Teensy still sleeps for 10 seconds on end, meaning that in the definition of the snoozeblocks, the second SnoozeBlock is probably overwriting the first SnoozeBlock. I'm guessing this is a bug, right? Does anyone know a solution? Many thanks! 🙄🚀
The text was updated successfully, but these errors were encountered: