E (203529) uart: uart_read_bytes(857): uart driver error
messages is in targets/esp32/jshardwareUart.c line 38 or so in function UartReset()
if(serial2_initialized) uart_driver_delete(uart_Serial2);
if(serial3_initialized) uart_driver_delete(uart_Serial3);
These should set the corresponding flag serialX_initialized to false but they don't.
if(serial2_initialized) {uart_driver_delete(uart_Serial2);serial2_initialized=false;}
if(serial3_initialized) {uart_driver_delete(uart_Serial3);serial3_initialized=false;}
Then reset(); ought to work fine without causing the spewing...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok the root of the problem with the
messages is in targets/esp32/jshardwareUart.c line 38 or so in function UartReset()
if(serial2_initialized) uart_driver_delete(uart_Serial2);
if(serial3_initialized) uart_driver_delete(uart_Serial3);
These should set the corresponding flag serialX_initialized to false but they don't.
if(serial2_initialized) {uart_driver_delete(uart_Serial2);serial2_initialized=false;}
if(serial3_initialized) {uart_driver_delete(uart_Serial3);serial3_initialized=false;}
Then reset(); ought to work fine without causing the spewing...