summaryrefslogtreecommitdiff
path: root/sw/Core/Src/main.c
diff options
context:
space:
mode:
authorAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 14:21:16 +0000
committerAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 14:21:16 +0000
commit2ecdaa538fc7a9b9613b01357fbd2cdb293735a8 (patch)
tree839cb5dc74c66273439472db988e338eadfe1f44 /sw/Core/Src/main.c
parent5fffef41b9d02f38d0a571be1d53c6c8581d306e (diff)
downloadplinky-2ecdaa538fc7a9b9613b01357fbd2cdb293735a8.tar.gz
fix the plinky bootloader to work on mac
Diffstat (limited to 'sw/Core/Src/main.c')
-rwxr-xr-xsw/Core/Src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/Core/Src/main.c b/sw/Core/Src/main.c
index c225277..d070d81 100755
--- a/sw/Core/Src/main.c
+++ b/sw/Core/Src/main.c
@@ -200,7 +200,7 @@ void check_bootloader_flash(void) {
DebugLog("bootloader left %d ones for us magic is %08x\r\n", count, magic);
if (count!=64/4 || magic!=0xa738ea75)
return;
-
+ rb32[64]++; // clear the magic
const uint32_t *app_base = (const uint32_t *)DELAY_BUF;
DebugLog("bootloader app base is %08x %08x\r\n", app_base[0], app_base[1]);