From a068b6ba27414dd0eb9149be8342a26ad033c70a Mon Sep 17 00:00:00 2001 From: George White Date: Mon, 18 Apr 2022 14:59:30 +0000 Subject: [PATCH] guard external flash setup hook --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 810348b6c9..a3cc01d165 100644 --- a/main.c +++ b/main.c @@ -837,9 +837,11 @@ int __attribute__((used)) main(void) { // Start the debug serial serial_early_init(); + #if !INTERNAL_FLASH_FILESYSTEM // 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 external_flash_setup(); + #endif // 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