add E32V2_2 single led as system sensor

This commit is contained in:
MichaelDvP
2026-01-08 16:32:22 +01:00
parent 7308b8e73d
commit 98fb6941d2
2 changed files with 9 additions and 4 deletions

View File

@@ -33,8 +33,7 @@ uuid::log::Logger TemperatureSensor::logger_{F_(temperaturesensor), uuid::log::F
// start the 1-wire
void TemperatureSensor::start(const bool factory_settings) {
// set_internal_ = factory_settings && EMSESP::nvs_.getString("boot").equals("E32V2_2") && EMSESP::nvs_.getString("hwrevision").equals("3.0");
set_internal_ = factory_settings && analogReadMilliVolts(39) > 700; // core voltage > 2.6V
set_internal_ = factory_settings && EMSESP::system_.board_profile() == "E32V2_2";
reload();
if (!dallas_gpio_) {