Skip to content

Commit

Permalink
Merge pull request #1 from digidigital/ESP8266-fix
Browse files Browse the repository at this point in the history
Basic fix for issue adafruit#23
  • Loading branch information
digidigital authored May 25, 2017
2 parents 6606689 + 974d771 commit 6845d11
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 @@ -66,9 +66,9 @@ void Adafruit_Thermal::timeoutSet(unsigned long x) {
// This function waits (if necessary) for the prior task to complete.
void Adafruit_Thermal::timeoutWait() {
if(dtrEnabled) {
while(digitalRead(dtrPin) == HIGH);
while(digitalRead(dtrPin) == HIGH){yield();};
} else {
while((long)(micros() - resumeTime) < 0L); // (syntax is rollover-proof)
while((long)(micros() - resumeTime) < 0L){yield();}; // (syntax is rollover-proof)
}
}

Expand Down

0 comments on commit 6845d11

Please sign in to comment.