Skip to content

Commit a068b6b

Browse files
committed
guard external flash setup hook
1 parent 3b5171c commit a068b6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,9 +837,11 @@ int __attribute__((used)) main(void) {
837837
// Start the debug serial
838838
serial_early_init();
839839

840+
#if !INTERNAL_FLASH_FILESYSTEM
840841
// Set up anything that might need to get done before we try to use SPI flash
841842
// This is needed for some boards where flash relies on GPIO setup to work
842843
external_flash_setup();
844+
#endif
843845

844846
// Create a new filesystem only if we're not in a safe mode.
845847
// A power brownout here could make it appear as if there's

0 commit comments

Comments
 (0)