mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 11:45:32 +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
|
begin
|
||||||
ReadChar := true;
|
ReadChar := true;
|
||||||
ACh := #0;
|
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;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user