aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2019-02-15 10:10:38 +0100
committerKévin Redon <kredon@sysmocom.de>2019-02-15 10:10:38 +0100
commit5538ea85309536224b98629b8c39aef22280cfab (patch)
treec9518c42baa10b4c491e90dee7eb84de5b31df38
parent6794b97e21e33303c56d29a2ba6882cc82c6c4bd (diff)
minox: use RAM address define instead of hardcoded value0.1
-rw-r--r--usb_dfu_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_dfu_main.c b/usb_dfu_main.c
index f431d29..19fe437 100644
--- a/usb_dfu_main.c
+++ b/usb_dfu_main.c
@@ -73,7 +73,7 @@ static bool check_application(void)
* if the SP is not in this range (e.g. flash has been erased) there is no valid application
* the second entry in the vector table is the reset address, corresponding to the application start
*/
- return (0x20000000 == ((*application_start_address) & 0xFFF80000));
+ return (HSRAM_ADDR == ((*application_start_address) & 0xFFF80000));
}
/** Start the application