diff options
| author | Alex Evans <715855+mmalex@users.noreply.github.com> | 2024-11-06 17:47:11 +0000 |
|---|---|---|
| committer | Alex Evans <715855+mmalex@users.noreply.github.com> | 2024-11-06 17:47:11 +0000 |
| commit | 7852372b15f850a46a02d1aa991215619096ad50 (patch) | |
| tree | f82a2b81b92e20f332bffb584075338c220d157b /bootloader/Core/Src/main.c | |
| parent | 2ecdaa538fc7a9b9613b01357fbd2cdb293735a8 (diff) | |
| download | plinky-7852372b15f850a46a02d1aa991215619096ad50.tar.gz | |
add oled feedback for flashing process
Diffstat (limited to 'bootloader/Core/Src/main.c')
| -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) |
