summaryrefslogtreecommitdiff
path: root/bootloader/Core/Src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/Core/Src/main.c')
-rwxr-xr-xbootloader/Core/Src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader/Core/Src/main.c b/bootloader/Core/Src/main.c
index 2f45dc4..a16aade 100755
--- a/bootloader/Core/Src/main.c
+++ b/bootloader/Core/Src/main.c
@@ -341,8 +341,9 @@ int main(void)
/* USER CODE BEGIN 3 */
if (encstate==1)
startreset=true;
- if (encstate==0x80 && startreset) {
+ if (encstate==0x0 && startreset) {
// released the encoder
+ HAL_Delay(100);
scb_reset_system();
}
if (encheld>10000)