mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add comment
This commit is contained in:
@@ -57,7 +57,7 @@ void TemperatureSensor::reload() {
|
|||||||
// load the service settings
|
// load the service settings
|
||||||
EMSESP::system_.dallas_gpio(0); // reset in system to check valid sensor
|
EMSESP::system_.dallas_gpio(0); // reset in system to check valid sensor
|
||||||
EMSESP::webSettingsService.read([&](WebSettings const & settings) {
|
EMSESP::webSettingsService.read([&](WebSettings const & settings) {
|
||||||
dallas_gpio_ = EMSESP::system_.is_valid_gpio(settings.dallas_gpio) ? settings.dallas_gpio : 0;
|
dallas_gpio_ = EMSESP::system_.is_valid_gpio(settings.dallas_gpio) ? settings.dallas_gpio : 0; // we use 0 for disabled
|
||||||
parasite_ = settings.dallas_parasite;
|
parasite_ = settings.dallas_parasite;
|
||||||
});
|
});
|
||||||
EMSESP::system_.dallas_gpio(dallas_gpio_); // set to system for checks
|
EMSESP::system_.dallas_gpio(dallas_gpio_); // set to system for checks
|
||||||
|
|||||||
Reference in New Issue
Block a user