knowit / snappysense

3 stars 1 forks source link

Hidden blocking in libraries (Arduino problem) #54

Open lars-t-hansen opened 1 year ago

lars-t-hansen commented 1 year ago

The Arduino libraries do a lot of hidden blocking with delay(). As a consequence, we should consider either moving off the Arduino libraries or making all of our timers resilient to this type of problem (not sure what to do about that yet). There are risks that the event queue will fill up with timer event if something blocks for too long, and after that there's no telling what will happen.