mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-20 20:10:33 -05:00
Images generated using PlantUML had transparent backgrounds which made their text difficult to read on GitHub when using "Dark Mode". Forcing a background color of #F0F0F0 ensures they are all readable.
51 lines
764 B
Plaintext
51 lines
764 B
Plaintext
@startuml
|
|
skinparam BackgroundColor F0F0F0
|
|
|
|
start
|
|
|
|
|
|
:pass data to ATStream via write;
|
|
|
|
if (isReady) then
|
|
:return error (could be call reset, to get new data);
|
|
Stop;
|
|
endif
|
|
|
|
:add new data to buffer;
|
|
|
|
|
|
if (AT Return at the begin) then (yes)
|
|
:Set "Return at the begin" flag;
|
|
if (Expected line count= 0) then (yes)
|
|
:(isReady=true);
|
|
Stop;
|
|
endif
|
|
else (no)
|
|
endif
|
|
|
|
:Count lines from last position;
|
|
|
|
if ("Return at the begin" flag is set) then (yes)
|
|
if (More lines then expected) then (yes)
|
|
:(isReady=true);
|
|
Stop;
|
|
endif
|
|
else (no)
|
|
if (AT Return at the end) then (yes)
|
|
:(isReady=true);
|
|
Stop;
|
|
endif
|
|
endif
|
|
|
|
:Stream still wait for data (isReady=false);
|
|
Stop;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@enduml
|