Skip to content

Commit 2b05b60

Browse files
committed
esp8266/esp_mphal: mp_uos_dupterm_deactivate() may raise exception.
So, keep call to it protected via NLR still.
1 parent 4681b86 commit 2b05b60

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

esp8266/esp_mphal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,12 @@ static int call_dupterm_read(void) {
171171
}
172172
mp_buffer_info_t bufinfo;
173173
mp_get_buffer_raise(res, &bufinfo, MP_BUFFER_READ);
174-
nlr_pop();
175174
if (bufinfo.len == 0) {
176175
mp_uos_deactivate("dupterm: EOF received, deactivating\n", MP_OBJ_NULL);
176+
nlr_pop();
177177
return -1;
178178
}
179+
nlr_pop();
179180
if (*(byte*)bufinfo.buf == interrupt_char) {
180181
mp_keyboard_interrupt();
181182
return -2;

0 commit comments

Comments
 (0)