When upgrading, we compare the arduino version we are running to the version included in our upgrade. If it's different, we flash the new version.
When flashing, we backup the previous version, flash the new one and test it. If it fails the test, we make a noisy error and flash the previous version back on.
When upgrading, we compare the arduino version we are running to the version included in our upgrade. If it's different, we flash the new version.
When flashing, we backup the previous version, flash the new one and test it. If it fails the test, we make a noisy error and flash the previous version back on.