aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Degirolmo2012-07-09 08:37:02 -0300
committerJavier Degirolmo2012-07-09 08:37:02 -0300
commit7acb3981cda42444d44c531377116620ad6fe441 (patch)
treeaacab34233283952a80a36d83a5d7904a3745ccf
parentf1c7ea7fef1eeb8753379a453d046a5c2d3244a4 (diff)
Oops again
-rw-r--r--c/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/echo.c b/c/echo.c
index 246c6b6..3b081cb 100644
--- a/c/echo.c
+++ b/c/echo.c
@@ -46,7 +46,7 @@ void echo_init(const void *list) {
const uint8_t *src = echo_blob;
volatile uint8_t *dest = z80_ram;
int16_t count = sizeof(echo_blob)-1;
- while (count >= 0)
+ while (count-- >= 0)
*dest++ = *src++;
// Let Echo start running!