diff --git a/src/main/interface/cli.c b/src/main/interface/cli.c index fac186e48c..99695deb3d 100644 --- a/src/main/interface/cli.c +++ b/src/main/interface/cli.c @@ -3345,6 +3345,9 @@ const cliResourceValue_t resourceTable[] = { #if defined(USE_USB_MSC) { OWNER_USB_MSC_PIN, PG_USB_CONFIG, offsetof(usbDev_t, mscButtonPin), 0 }, #endif +#ifdef USE_FLASH + { OWNER_FLASH_CS, PG_FLASH_CONFIG, offsetof(flashConfig_t, csTag), 0 }, +#endif }; static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index) diff --git a/src/main/interface/settings.c b/src/main/interface/settings.c index 7894af0b00..b579ed2a0c 100644 --- a/src/main/interface/settings.c +++ b/src/main/interface/settings.c @@ -66,6 +66,7 @@ #include "pg/beeper.h" #include "pg/beeper_dev.h" #include "pg/dashboard.h" +#include "pg/flash.h" #include "pg/max7456.h" #include "pg/pg.h" #include "pg/pg_ids.h" @@ -983,6 +984,10 @@ const clivalue_t valueTable[] = { #ifdef USE_USB_MSC { "usb_msc_pin_pullup", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_USB_CONFIG, offsetof(usbDev_t, mscButtonUsePullup) }, #endif +// PG_FLASH_CONFIG +#ifdef USE_FLASH + { "flash_spi_bus", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, SPIDEV_COUNT }, PG_FLASH_CONFIG, offsetof(flashConfig_t, spiDevice) }, +#endif }; const uint16_t valueTableEntryCount = ARRAYLEN(valueTable);