Skip to content

Commit

Permalink
[P026][Sysvars] Add delay() call
Browse files Browse the repository at this point in the history
  • Loading branch information
tonhuisman committed Sep 25, 2023
1 parent e96bfb2 commit 1eb7a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/src/Helpers/Hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ float getInternalTemperature() {
#if defined(ESP32_CLASSIC)
uint8_t raw = 128u;
while ((128u == raw) && (0 != retries)) {
delay(0);
raw = temprature_sens_read(); // Each reading takes about 112 microseconds
--retries;
}
Expand Down

0 comments on commit 1eb7a0d

Please sign in to comment.