Skip to content

Commit

Permalink
Add check for flashIsSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 20, 2023
1 parent 0d8d210 commit 9724a66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/target/common_post.h
Expand Up @@ -234,9 +234,6 @@
#endif

#ifdef USE_FLASH
#define USE_FLASHFS
#define USE_FLASH_TOOLS
#endif

#if (defined(USE_FLASH_W25M512) || defined(USE_FLASH_W25Q128FV)) && !defined(USE_FLASH_M25P16)
#define USE_FLASH_M25P16
Expand All @@ -252,9 +249,14 @@

#if defined(USE_FLASH_M25P16) || defined(USE_FLASH_W25M) || defined(USE_FLASH_W25N01G) || defined(USE_FLASH_W25Q128FV)
#define USE_FLASH_CHIP
#define USE_FLASH_TOOLS
#define USE_FLASHFS
#endif

#endif // USE_FLASH

#ifndef USE_FLASH_CHIP
#undef USE_FLASH_TOOLS
#undef USE_FLASHFS
#endif

Expand Down

0 comments on commit 9724a66

Please sign in to comment.