* patch by Christo Crause to take care of the fact that the esp8266 read function is non-blocking, resolves #38243

git-svn-id: trunk@47832 -
This commit is contained in:
florian 2020-12-21 21:43:06 +00:00
parent f0961c17c8
commit da468719df

View File

@ -81,7 +81,11 @@ unit esp8266;
begin
ReadChar := true;
ACh := #0;
uart_rx_one_char(@ACh); // check failure?
repeat
uart_rx_one_char(@ACh); // check failure?
if ACh = #0 then
vTaskDelay(1);
until ACh <> #0;
end;
begin