Skip to content
Snippets Groups Projects
Commit 225111a0 authored by David Gauchard's avatar David Gauchard Committed by Malaurie Bernard
Browse files

restore CLI on some consoles

parent 559fe494
No related branches found
No related tags found
1 merge request!23restore CLI on some consoles
......@@ -117,13 +117,12 @@ void Cli::check_emergency ()
void Cli::loop (Stream& input)
{
while (true)
{
if (!input.available())
return;
int c = input.read();
if (c == 13)
if (c == 10 || c == 13)
break;
if (c >= 32 && c <= 127)
_currentInput += (char)c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment