Skip to content

Commit

Permalink
rpipico: change the flash on/off to fit the usual pattern
Browse files Browse the repository at this point in the history
- CONFIG_
- enables not disables
  • Loading branch information
EtchedPixels committed Apr 5, 2024
1 parent 2cf6524 commit 754267c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kernel/platform/platform-rpipico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#undef CONFIG_FONT8X8

/* Built in NAND flash. Warning, it's unstable. */
#undef PICO_DISABLE_FLASH
#define CONFIG_PICO_FLASH

/* Program layout */

Expand Down
2 changes: 1 addition & 1 deletion Kernel/platform/platform-rpipico/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void device_init(void)
{
/* The flash device is too small to be useful, and a corrupt flash will
* cause a crash on startup... oddly. */
#ifndef PICO_DISABLE_FLASH
#ifdef CONFIG_PICO_FLASH
flash_dev_init();
#endif
sd_rawinit();
Expand Down

0 comments on commit 754267c

Please sign in to comment.