Skip to content

Commit

Permalink
Fix ESP8266 yield bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greiman committed Aug 15, 2016
1 parent 70a49fb commit bc32f5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SdFat/src/FatLib/SysCall.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ class SysCall {
/** Yield to other threads. */
static void yield();
};

#if defined(ARDUINO)
#if defined(ESP8266)
inline void SysCall::yield() {
// Avoid ESP8266 bug
delay(0);
}
#elif defined(ARDUINO)
inline void SysCall::yield() {
// Use the external Arduino yield() function.
::yield();
Expand Down

0 comments on commit bc32f5a

Please sign in to comment.