mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
added tx_delay
This commit is contained in:
@@ -177,7 +177,12 @@ void ICACHE_FLASH_ATTR emsuart_tx_brk() {
|
||||
void ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) {
|
||||
for (uint8_t i = 0; i < len; i++) {
|
||||
USF(EMSUART_UART) = buf[i];
|
||||
//delayMicroseconds(EMS_TX_BRK_WAIT);
|
||||
|
||||
// check if we need to force a delay to slow down Tx
|
||||
// https://github.com/proddy/EMS-ESP/issues/23#
|
||||
if (EMS_Sys_Status.emsTxDelay) {
|
||||
delayMicroseconds(EMS_TX_BRK_WAIT);
|
||||
}
|
||||
}
|
||||
emsuart_tx_brk();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user