don't publish dallas if there are none

This commit is contained in:
proddy
2021-04-21 20:37:45 +02:00
parent a633225ad2
commit 8ea48f7c81
4 changed files with 33 additions and 12 deletions

View File

@@ -68,6 +68,10 @@ class DallasSensor {
return sensorfails_;
}
bool dallas_enabled() {
return (dallas_gpio_ != 0);
}
private:
static constexpr uint8_t MAX_SENSORS = 20;