diff options
Diffstat (limited to 'bootloader/Core/Src')
| -rwxr-xr-x | bootloader/Core/Src/main.c | 3 |
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) |
