mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-10-28 11:14:58 +00:00
text changes and comments
This commit is contained in:
@@ -87,6 +87,7 @@ void AnalogSensor::start(const bool factory_settings) {
|
|||||||
|
|
||||||
return StateUpdateResult::CHANGED; // persist the change
|
return StateUpdateResult::CHANGED; // persist the change
|
||||||
});
|
});
|
||||||
|
LOG_DEBUG("Adding system sensors for core_voltage, supply_voltage and led");
|
||||||
}
|
}
|
||||||
reload(true); // fetch the list of sensors from our customization service
|
reload(true); // fetch the list of sensors from our customization service
|
||||||
|
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ void TemperatureSensor::loop() {
|
|||||||
if (!EMSESP::nvs_.isKey("intTemp")) {
|
if (!EMSESP::nvs_.isKey("intTemp")) {
|
||||||
EMSESP::nvs_.putString("intTemp", s->id());
|
EMSESP::nvs_.putString("intTemp", s->id());
|
||||||
}
|
}
|
||||||
// LOG_NOTICE("Adding system sensor for gateway temperature %s", s->id().c_str());
|
LOG_DEBUG("Adding system sensor for gateway_temperature");
|
||||||
EMSESP::webCustomizationService.update([&](WebCustomization & settings) {
|
EMSESP::webCustomizationService.update([&](WebCustomization & settings) {
|
||||||
auto newSensor = SensorCustomization();
|
auto newSensor = SensorCustomization();
|
||||||
strlcpy(newSensor.id, s->id(), sizeof(newSensor.id));
|
strlcpy(newSensor.id, s->id(), sizeof(newSensor.id));
|
||||||
|
|||||||
@@ -456,7 +456,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
|||||||
String bbq_board = EMSESP::system_.getBBQKeesGatewayDetails(FUSE_VALUE::BOARD);
|
String bbq_board = EMSESP::system_.getBBQKeesGatewayDetails(FUSE_VALUE::BOARD);
|
||||||
if (!bbq_board.isEmpty() && settings.board_profile != "CUSTOM") {
|
if (!bbq_board.isEmpty() && settings.board_profile != "CUSTOM") {
|
||||||
#if defined(EMSESP_DEBUG)
|
#if defined(EMSESP_DEBUG)
|
||||||
EMSESP::logger().info("Overriding board profile with fuse value %s", bbq_board.c_str());
|
EMSESP::logger().info("Overriding board profile with eFuse value %s", bbq_board.c_str());
|
||||||
#endif
|
#endif
|
||||||
settings.board_profile = bbq_board;
|
settings.board_profile = bbq_board;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user