EMS Tx del

This commit is contained in:
proddy
2019-05-24 10:06:42 +02:00
parent dfbb804887
commit a555641ba3

View File

@@ -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...
*/
}
}