We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4681b86 commit 2b05b60Copy full SHA for 2b05b60
1 file changed
esp8266/esp_mphal.c
@@ -171,11 +171,12 @@ static int call_dupterm_read(void) {
171
}
172
mp_buffer_info_t bufinfo;
173
mp_get_buffer_raise(res, &bufinfo, MP_BUFFER_READ);
174
- nlr_pop();
175
if (bufinfo.len == 0) {
176
mp_uos_deactivate("dupterm: EOF received, deactivating\n", MP_OBJ_NULL);
+ nlr_pop();
177
return -1;
178
179
180
if (*(byte*)bufinfo.buf == interrupt_char) {
181
mp_keyboard_interrupt();
182
return -2;
0 commit comments