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
To avoid the rollover problem, the variable to store a millis value in should be 'unsigned long'.
In "MPU6050_light.h", the preInterval should be unsigned long.
In the example "GetAllData.ino", the timer should be unsigned long.
There are a few minor things:
Could you use spaces instead of tabs ? Both are used and the indents are not the same.
A millis timer is: if (currentMillis - previousMillis >= interval) {. Could you change the > into >= in the example "GetAllData.ino" ?
To avoid the rollover problem, the variable to store a millis value in should be 'unsigned long'.
In "MPU6050_light.h", the
preInterval
should be unsigned long.In the example "GetAllData.ino", the
timer
should be unsigned long.There are a few minor things:
Could you use spaces instead of tabs ? Both are used and the indents are not the same.
A millis timer is:
if (currentMillis - previousMillis >= interval) {
. Could you change the>
into>=
in the example "GetAllData.ino" ?This is trickery code:
Please use normal code:
The text was updated successfully, but these errors were encountered: