Start in the same state after turning the power off and on

Hi @markd833
Before publishing the code I tested it here with an Arduino Due and it worked correctly.

I used the reset, turned it off and on several times and the flash value remained.
Only returned to 0XFF when re-uploading the code.

RV mineirin