mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
uart fixed delay
This commit is contained in:
@@ -213,7 +213,8 @@ uint16_t EMSuart::transmit(const uint8_t * buf, const uint8_t len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tx_mode_ == 5) { // wait before sending
|
if (tx_mode_ == 5) { // wait before sending
|
||||||
vTaskDelay(4 / portTICK_PERIOD_MS);
|
//vTaskDelay(4 / portTICK_PERIOD_MS);
|
||||||
|
delayMicroseconds(4000);
|
||||||
for (uint8_t i = 0; i < len; i++) {
|
for (uint8_t i = 0; i < len; i++) {
|
||||||
EMS_UART.fifo.rw_byte = buf[i];
|
EMS_UART.fifo.rw_byte = buf[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user