mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Display FLASH JEDEC ID in status and flash_info (#12051)
This commit is contained in:
parent
103f238eea
commit
bcfe335bd7
3 changed files with 30 additions and 11 deletions
|
@ -2456,8 +2456,8 @@ static void cliFlashInfo(const char *cmdName, char *cmdline)
|
|||
|
||||
const flashGeometry_t *layout = flashGetGeometry();
|
||||
|
||||
cliPrintLinef("Flash sectors=%u, sectorSize=%u, pagesPerSector=%u, pageSize=%u, totalSize=%u",
|
||||
layout->sectors, layout->sectorSize, layout->pagesPerSector, layout->pageSize, layout->totalSize);
|
||||
cliPrintLinef("Flash sectors=%u, sectorSize=%u, pagesPerSector=%u, pageSize=%u, totalSize=%u JEDEC ID=0x%08x",
|
||||
layout->sectors, layout->sectorSize, layout->pagesPerSector, layout->pageSize, layout->totalSize, layout->jedecId);
|
||||
|
||||
for (uint8_t index = 0; index < FLASH_MAX_PARTITIONS; index++) {
|
||||
const flashPartition_t *partition;
|
||||
|
@ -4854,6 +4854,13 @@ static void cliStatus(const char *cmdName, char *cmdline)
|
|||
cliSdInfo(cmdName, "");
|
||||
#endif
|
||||
|
||||
#ifdef USE_FLASH_CHIP
|
||||
const flashGeometry_t *layout = flashGetGeometry();
|
||||
if (layout->jedecId != 0) {
|
||||
cliPrintLinef("FLASH: JEDEC ID=0x%08x %uM", layout->jedecId, layout->totalSize >> 20);
|
||||
}
|
||||
#endif
|
||||
|
||||
cliPrint("Arming disable flags:");
|
||||
armingDisableFlags_e flags = getArmingDisableFlags();
|
||||
while (flags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue