|
|
@ -944,13 +944,9 @@ void CommonCLI::handleGetCmd(uint32_t sender_timestamp, char* command, char* rep |
|
|
strcpy(reply, "ERROR: Power management not supported"); |
|
|
strcpy(reply, "ERROR: Power management not supported"); |
|
|
#endif |
|
|
#endif |
|
|
} else if (memcmp(config, "pwrmgt.bootreason", 17) == 0) { |
|
|
} else if (memcmp(config, "pwrmgt.bootreason", 17) == 0) { |
|
|
#ifdef NRF52_POWER_MANAGEMENT |
|
|
|
|
|
sprintf(reply, "> Reset: %s; Shutdown: %s", |
|
|
sprintf(reply, "> Reset: %s; Shutdown: %s", |
|
|
_board->getResetReasonString(_board->getResetReason()), |
|
|
_board->getResetReasonString(_board->getResetReason()), |
|
|
_board->getShutdownReasonString(_board->getShutdownReason())); |
|
|
_board->getShutdownReasonString(_board->getShutdownReason())); |
|
|
#else |
|
|
|
|
|
strcpy(reply, "ERROR: Power management not supported"); |
|
|
|
|
|
#endif |
|
|
|
|
|
} else if (memcmp(config, "pwrmgt.bootmv", 13) == 0) { |
|
|
} else if (memcmp(config, "pwrmgt.bootmv", 13) == 0) { |
|
|
#ifdef NRF52_POWER_MANAGEMENT |
|
|
#ifdef NRF52_POWER_MANAGEMENT |
|
|
sprintf(reply, "> %u mV", _board->getBootVoltage()); |
|
|
sprintf(reply, "> %u mV", _board->getBootVoltage()); |
|
|
|