Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Energia bug in Bink without delay tutorial

$
0
0

Hi

 

I've joined the forum to post a bug (I believe) in a tutorial on the Energia website. Specifically, the blink without delay tutorial. The following line of code is used to determine whether to toggle the state of the LED:

if(currentMillis - previousMillis > interval)

The documentation for the millis method states:

 

 

This number will overflow (go back to zero), after approximately 50 days.

 

As far as I can tell, this means that after approximately 50 days the example given will cease to blink and remain in the last state set.

 

Before someone shoots me down saying that it's just an example and not intended to run for longer, please bear in mind that these tutorials are used by us beginners and we assume they are examples of good practice.


Viewing all articles
Browse latest Browse all 2077

Trending Articles