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
Little bug in abs implementation for Arduino (but not only Arduino, abs must be banned from embeded devices !) if (abs(oldacsread-acsread)>20)
if oldacsread=1 and acsread=2 abs return 65535 ! so the test is ok !
Simple workaround : change type of oldacsread and acsread to int16_t
The text was updated successfully, but these errors were encountered:
Little bug in abs implementation for Arduino (but not only Arduino, abs must be banned from embeded devices !)
if (abs(oldacsread-acsread)>20)
if oldacsread=1 and acsread=2 abs return 65535 ! so the test is ok !
Simple workaround : change type of oldacsread and acsread to int16_t
The text was updated successfully, but these errors were encountered: