mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-29 10:09:11 +03:00
lint fixing
This commit is contained in:
@@ -241,13 +241,13 @@ enum {
|
||||
};
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32C3
|
||||
#define EMSESP_PLATFORM "ESP32-C3";
|
||||
#define EMSESP_PLATFORM "ESP32-C3"
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
#define EMSESP_PLATFORM "ESP32-S2";
|
||||
#define EMSESP_PLATFORM "ESP32-S2"
|
||||
#elif CONFIG_IDF_TARGET_ESP32S3
|
||||
#define EMSESP_PLATFORM "ESP32-S3";
|
||||
#define EMSESP_PLATFORM "ESP32-S3"
|
||||
#elif CONFIG_IDF_TARGET_ESP32 || EMSESP_STANDALONE
|
||||
#define EMSESP_PLATFORM "ESP32";
|
||||
#define EMSESP_PLATFORM "ESP32"
|
||||
#else
|
||||
#error Target CONFIG_IDF_TARGET is not supported
|
||||
#endif
|
||||
|
||||
@@ -964,6 +964,7 @@ void System::show_system(uuid::console::Shell & shell) {
|
||||
|
||||
shell.println("System:");
|
||||
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
||||
shell.printfln(" Platform: %s", EMSESP_PLATFORM);
|
||||
shell.printfln(" Language: %s", locale().c_str());
|
||||
shell.printfln(" Board profile: %s", board_profile().c_str());
|
||||
shell.printfln(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str());
|
||||
|
||||
@@ -81,7 +81,7 @@ StateUpdateResult WebModules::update(JsonObject root, WebModules & webModules) {
|
||||
auto enable = module["enabled"].as<bool>();
|
||||
|
||||
if (!moduleLibrary.enable(key, license, enable)) {
|
||||
return StateUpdateResult::ERROR;
|
||||
return StateUpdateResult::ERROR; // throw a 400 error
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,10 +31,7 @@ void WebSchedulerService::begin() {
|
||||
_fsPersistence.readFromFS();
|
||||
|
||||
// save a local pointer to the scheduler item list
|
||||
EMSESP::webSchedulerService.read([&](WebScheduler & webScheduler) {
|
||||
//
|
||||
scheduleItems_ = &webScheduler.scheduleItems;
|
||||
});
|
||||
EMSESP::webSchedulerService.read([&](WebScheduler & webScheduler) { scheduleItems_ = &webScheduler.scheduleItems; });
|
||||
|
||||
EMSESP::logger().info("Starting Scheduler service");
|
||||
Mqtt::subscribe(EMSdevice::DeviceType::SCHEDULER, "scheduler/#", nullptr); // use empty function callback
|
||||
|
||||
Reference in New Issue
Block a user