Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
change to yield
Browse files Browse the repository at this point in the history
  • Loading branch information
caternuson committed Apr 10, 2021
1 parent d055484 commit 252bc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adafruit_Thermal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ void Adafruit_Thermal::timeoutSet(unsigned long x) {
void Adafruit_Thermal::timeoutWait() {
if (dtrEnabled) {
while (digitalRead(dtrPin) == HIGH) {
delay(1);
yield();
};
} else {
while ((long)(micros() - resumeTime) < 0L) {
delay(1);
yield();
}; // (syntax is rollover-proof)
}
}
Expand Down

0 comments on commit 252bc28

Please sign in to comment.