telnet default settings #621

This commit is contained in:
MichaelDvP
2020-11-22 10:09:24 +01:00
parent 01e1c6e25b
commit fc189e13c3
5 changed files with 6 additions and 3 deletions

View File

@@ -151,11 +151,11 @@ void DallasSensor::loop() {
scancnt_ = 0;
} else if (scancnt_ == -2) { // startup
firstscan_ = sensors_.size();
LOG_DEBUG(F("First scan found %d dallassensor(s). Adding them."), firstscan_);
} else if ((scancnt_ <= 0) && (firstscan_ != sensors_.size())) { // check 2 times for no change of sensor #
scancnt_ = -3;
sensors_.clear(); // restart scaning and clear to get correct numbering
}
// LOG_DEBUG(F("Found %zu sensor(s). Adding them."), sensors_.size()); // uncomment for debug
state_ = State::IDLE;
}
}