summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2015-01-15 00:06:03 +0100
committerLeo C2015-01-15 00:06:03 +0100
commitce47d431da8ca00d52caffebaafd7ddb817d7b26 (patch)
treee2c43f3e7ef81afcf5c8b1c49f4b4198790e4e61
parent11b53d3fc2bf5346bfd2d87191e20b22c5651013 (diff)
downloadz180-stamp-ce47d431da8ca00d52caffebaafd7ddb817d7b26.zip
Don't wait forever, if memfifo for console out is not initialized.
-rw-r--r--TODO.md1
-rw-r--r--avr/z80-if.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 8e0686d..b952c9d 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,3 +3,4 @@ TODO List
- TODO: eliminate xmalloc
- TODO: build time directory as lib
+- TODO: command 'help <topic>' should return success
diff --git a/avr/z80-if.c b/avr/z80-if.c
index b64e755..d5dc2d7 100644
--- a/avr/z80-if.c
+++ b/avr/z80-if.c
@@ -593,7 +593,7 @@ int z80_memfifo_is_empty(const fifo_t f)
int z80_memfifo_is_full(const fifo_t f)
{
- int rc = 1;
+ int rc = 0;
if (fifo_dsc[f].base != 0) {
z80_bus_cmd(Request);