If the button is held down to reboot the watch and not released after the reboot, the device can enter recovery mode unintentionally. This check aims to ignore the button if it is held for the entirety of the 5 second delay, implying it was held before the device started to boot and should be ignored.
I'm not sure if the count will be exactly 3000 64 5 in this situation, or if there's a better way to address this, or if the secondary condition is needed for the restore_factory if statement... But I made a PR anyway despite a profound lack of certainty!
If the button is held down to reboot the watch and not released after the reboot, the device can enter recovery mode unintentionally. This check aims to ignore the button if it is held for the entirety of the 5 second delay, implying it was held before the device started to boot and should be ignored.
I'm not sure if the count will be exactly 3000 64 5 in this situation, or if there's a better way to address this, or if the secondary condition is needed for the restore_factory if statement... But I made a PR anyway despite a profound lack of certainty!