use yield() only #defined ARDUINO
This commit is contained in:
parent
91fd7ad476
commit
79ba6cac99
|
@ -44,7 +44,9 @@ static Print *u8g2_print_for_screenshot;
|
|||
|
||||
void u8g2_print_callback(const char *s)
|
||||
{
|
||||
#ifdef ARDUINO
|
||||
yield();
|
||||
#endif
|
||||
u8g2_print_for_screenshot->print(s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue