Closed SebDominguez-zz closed 5 years ago
Alright, thanks for the input. Is it fixed for you, then?
All seems to work fine now !
A little rectification on my last post: the bug was in the 45 * 1000
part.
Since the compiler seems to keep the result in a short (and 45000 is > to 32767), I was ending trying to put in eeprom a negative number.
So just writing the cours time in ms or just casting them do the trick.
But I still get gibberish on the serial port when I try to use shutters &reset();
I may use it wrong ?
I may be doing something wrong but I really don't know what
Edit: Activating the debug mode throw me this message "Stored state is invalid".
I tried to call
shutters.reset();
but then this happened...Edit2: Ok now it seems to work. I just edited
upCourseTime = 30 * 1000;
toupCourseTime = 30000;