summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Leech <andrew@alelec.net>2020-02-18 13:56:56 +1100
committerDamien George <damien.p.george@gmail.com>2020-02-18 14:22:03 +1100
commit3fe83e43183f224f2fb737a7dc96078bfb7f88a7 (patch)
tree6fba82cfa7edc8567b59c5480ebf6d868a389b42
parentf4726735cf9607c4d77edf83f81a11a0e2ab5c98 (diff)
stm32/sdram: Fix compile issue from unused sdram startup test flag.
-rw-r--r--ports/stm32/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index 042561db5..45bacbc6c 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -501,6 +501,7 @@ void stm32_main(uint32_t reset_mode) {
#if MICROPY_HW_SDRAM_SIZE
sdram_init();
bool sdram_valid = true;
+ UNUSED(sdram_valid);
#if MICROPY_HW_SDRAM_STARTUP_TEST
sdram_valid = sdram_test(true);
#endif