mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-05 15:51:56 +00:00
ReadChar() calls now Global.Sleep
This commit is contained in:
parent
4a4744082b
commit
8bd4438678
1 changed files with 3 additions and 1 deletions
|
|
@ -260,7 +260,9 @@ namespace Cosmos.Hardware {
|
||||||
CheckInit();
|
CheckInit();
|
||||||
char xResult = '\0';
|
char xResult = '\0';
|
||||||
while (mBuffer.Count == 0 || !GetCharValue(mBuffer.Dequeue(), out xResult))
|
while (mBuffer.Count == 0 || !GetCharValue(mBuffer.Dequeue(), out xResult))
|
||||||
;
|
{
|
||||||
|
Global.Sleep(10); //ToDo optimize value
|
||||||
|
}
|
||||||
return xResult;
|
return xResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue