run only on the initial power up and no other time in the event of a reset
This begs the question, why does it have to be reset?
But if your point is that good program structure should not require a 'running reset', I agree.
Ok, perhaps the best way is to get it to save a value to EEPROM on startup after it has run the ESC calibration routine.So the code would be:Check for value in EEPROMif value exists, ignore calibration codeelse, run calibration code and write value to EEPROMThen you could have a physical button to reset the value in EEPROM if you wanted to run the routine on next startup.Mowcius
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16