Skip to content
Snippets Groups Projects
Commit a99d4dc1 authored by deuce's avatar deuce
Browse files

Fix bug found by saper making getche() only work if you enter a null

character first (checks the return value instead of the function pointer).

Thanks!
parent ae57f293
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_getche(void)
ciolib_putch(ch);
return(ch);
}
if(cio_api.getche())
if(cio_api.getche)
return(cio_api.getche());
else {
while(1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment