mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 14:19:28 +02:00
* 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:
parent
f0961c17c8
commit
da468719df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user