Revert to micropython_port_should_interrupt

This commit is contained in:
Romain Goyet
2018-11-14 16:57:16 +01:00
parent 24630011b1
commit d7a13ba8fd
4 changed files with 8 additions and 10 deletions

View File

@@ -34,7 +34,7 @@
void delay_ms(mp_uint_t delay) {
uint32_t start = millis();
while (millis() - start < delay && !micropython_port_should_interrupt(true)) {
while (millis() - start < delay && !micropython_port_should_interrupt()) {
msleep(1);
}
}