Removed arduino's delay()

This commit is contained in:
2021-08-09 16:15:21 +02:00
parent a84e0538ff
commit 8e447f5cd5
6 changed files with 4 additions and 10 deletions

View File

@ -94,7 +94,7 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
end();
if(detectedBaudRate) {
delay(100); // Give some time...
vTaskDelay(100 / portTICK_PERIOD_MS); // Give some time...
_uart = uartBegin(_uart_nr, detectedBaudRate, config, rxPin, txPin, 256, invert);
} else {
log_e("Could not detect baudrate. Serial data at the port must be present within the timeout for detection to be possible");