You are reading a single comment by @fanoush and its replies.
Click here to read the full conversation.
-
I think it got added specifically to allow you to easily exit DFU
These are more useful if you also have display driver and see what is happening when you press, hold, release ...
If there is no display support in bootloader the easiest is simple timeout (like 1 or 2 minutes)
But maybe in this case the bootloader was built when there was no button in board file defined yet?
I think having
BUTTONPRESS_TO_REBOOT_BOOTLOADER
defined might really help you?https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2.py#L90
Bangle.js uses this and I think it got added specifically to allow you to easily exit DFU