summaryrefslogtreecommitdiff
path: root/bootloader/Core/Src/main.c
diff options
context:
space:
mode:
authorAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 17:47:11 +0000
committerAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 17:47:11 +0000
commit7852372b15f850a46a02d1aa991215619096ad50 (patch)
treef82a2b81b92e20f332bffb584075338c220d157b /bootloader/Core/Src/main.c
parent2ecdaa538fc7a9b9613b01357fbd2cdb293735a8 (diff)
downloadplinky-7852372b15f850a46a02d1aa991215619096ad50.tar.gz
add oled feedback for flashing process
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)