stm32/sdram: Fix compile issue from unused sdram startup test flag.

This commit is contained in:
Andrew Leech 2020-02-18 13:56:56 +11:00 committed by Damien George
parent f4726735cf
commit 3fe83e4318
1 changed files with 1 additions and 0 deletions

View File

@ -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