Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
revert esp32 dallassesnor pin switch
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Jan 28, 2021
1 parent b40be02 commit d3ecbda
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/dallassensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ void DallasSensor::loop() {
uint32_t time_now = uuid::get_uptime();

if (state_ == State::IDLE) {
#if defined(ESP32)
if (time_now - last_activity_ >= READ_INTERVAL_MS - 10) {
pinMode(27, OUTPUT);
digitalWrite(27, 1);
}
#endif
if (time_now - last_activity_ >= READ_INTERVAL_MS) {
// LOG_DEBUG(F("Read sensor temperature")); // uncomment for debug
if (bus_.reset() || parasite_) {
Expand All @@ -90,9 +84,6 @@ void DallasSensor::loop() {
sensor.temperature_c = EMS_VALUE_SHORT_NOTSET;
}
}
#if defined(ESP32)
digitalWrite(27, 0);
#endif
}
}
last_activity_ = time_now;
Expand Down

0 comments on commit d3ecbda

Please sign in to comment.