MCUdude / MicroCore

A light-weight Arduino hardware package for ATtiny13
548 stars 87 forks source link

Fix delay() #115

Closed ebuehrle closed 3 years ago

ebuehrle commented 4 years ago

Calling delay(0) would unexpectedly block for a while. This fixes the issue.

MCUdude commented 3 years ago

Thanks! But why would you call delay(0)?

per1234 commented 3 years ago

You might find this in code that is written to be cross-platform with ESP8266, where it is one way to reset the watchdog: https://arduino-esp8266.readthedocs.io/en/2.7.4_a/reference.html#timing-and-delays

ebuehrle commented 3 years ago

Exactly @per1234. By the way, thank you for this great library, @MCUdude.