guard external flash setup hook

This commit is contained in:
George White 2022-04-18 14:59:30 +00:00
parent 3b5171c4ff
commit a068b6ba27
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -837,9 +837,11 @@ int __attribute__((used)) main(void) {
// Start the debug serial // Start the debug serial
serial_early_init(); serial_early_init();
#if !INTERNAL_FLASH_FILESYSTEM
// Set up anything that might need to get done before we try to use SPI flash // Set up anything that might need to get done before we try to use SPI flash
// This is needed for some boards where flash relies on GPIO setup to work // This is needed for some boards where flash relies on GPIO setup to work
external_flash_setup(); external_flash_setup();
#endif
// Create a new filesystem only if we're not in a safe mode. // Create a new filesystem only if we're not in a safe mode.
// A power brownout here could make it appear as if there's // A power brownout here could make it appear as if there's