mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
EMS Tx del
This commit is contained in:
@@ -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...
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user