diff --git a/src/emsuart.cpp b/src/emsuart.cpp index 29dca667c..f21cb5e55 100644 --- a/src/emsuart.cpp +++ b/src/emsuart.cpp @@ -222,6 +222,8 @@ void ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) { * At end of receive we re-enable Rx-INT and send a Tx-BRK in loopback mode. */ + /* COMMENTED OUT - NOT WORKING + ETS_UART_INTR_DISABLE(); // disable rx interrupt emsuart_flush_fifos(); @@ -230,8 +232,6 @@ void ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) { USF(EMSUART_UART) = buf[i]; // send each Tx byte } - /* COMMENTED OUT - NOT WORKING - // wait until we received sizeof(telegram) or RxBRK (== collision detect) while ((((USS(EMSUART_UART) >> USRXC) & 0xFF) < len) || (U0IS & (1 << UIBD))) delayMicroseconds(11 * EMSUART_BIT_TIME); // burn CPU cycles... @@ -253,9 +253,10 @@ void ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) { emsuart_loopback(false); // disable loopback mode } - */ ETS_UART_INTR_ENABLE(); // receive anything from FIFO... + + */ } }