Skip to content

Commit

Permalink
drivers/mtd_default: fix for boards that define MTD_NUMOF
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Aug 29, 2023
1 parent 5cf3200 commit aef1a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/include/mtd_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ extern "C" {
*/
#define MTD_NUMOF (MTD_BOARD_NUMOF + MTD_SDCARD_NUMOF + MTD_EMULATED_NUMOF)

#else
#define MTD_BOARD_NUMOF MTD_NUMOF
#endif /* !defined(MTD_NUMOF) && !DOXYGEN */

#if !DOXYGEN
Expand Down

0 comments on commit aef1a71

Please sign in to comment.