mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
sonar recommendations
This commit is contained in:
@@ -1135,9 +1135,11 @@ bool System::command_info(const char * value, const int8_t id, JsonObject & outp
|
||||
node["bus status"] = (F("connected, tx issues - try a different tx-mode"));
|
||||
break;
|
||||
case EMSESP::BUS_STATUS_CONNECTED:
|
||||
default:
|
||||
node["bus status"] = (F("connected"));
|
||||
break;
|
||||
default:
|
||||
node["bus status"] = (F("unknown"));
|
||||
break;
|
||||
}
|
||||
|
||||
if (EMSESP::bus_status() != EMSESP::BUS_STATUS_OFFLINE) {
|
||||
@@ -1280,7 +1282,7 @@ bool System::command_restart(const char * value, const int8_t id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const std::string System::reset_reason(uint8_t cpu) {
|
||||
std::string System::reset_reason(uint8_t cpu) const {
|
||||
#ifndef EMSESP_STANDALONE
|
||||
switch (rtc_get_reset_reason(cpu)) {
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user