summaryrefslogtreecommitdiff
path: root/bootloader/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 /bootloader/Core/Src/main.c
parent5fffef41b9d02f38d0a571be1d53c6c8581d306e (diff)
downloadplinky-2ecdaa538fc7a9b9613b01357fbd2cdb293735a8.tar.gz
fix the plinky bootloader to work on mac
Diffstat (limited to 'bootloader/Core/Src/main.c')
-rwxr-xr-xbootloader/Core/Src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bootloader/Core/Src/main.c b/bootloader/Core/Src/main.c
index 0a9ebdb..2f45dc4 100755
--- a/bootloader/Core/Src/main.c
+++ b/bootloader/Core/Src/main.c
@@ -304,13 +304,11 @@ int main(void)
HAL_Delay(1);
bool encdown = !((GPIOC->IDR>>13)&1);
-
if (!encdown) { // encoder not down
jump_to_app();
}
// BOOTLOADER FLASHING MODE!!
memcpy((void*)DELAY_BUF,(void*)0x08000000,65536); // copy bootloader into RAM!:)
- memset((void*)REVERB_BUF,0,32768); // use reverbbuf as a byte mask of which bootlder pages have been written
/* USER CODE END SysInit */
@@ -339,6 +337,7 @@ int main(void)
{
/* USER CODE END WHILE */
+
/* USER CODE BEGIN 3 */
if (encstate==1)
startreset=true;