]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
apohw: Adjust position of LED indicators in the output after switch to RAW mode.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 10 May 2012 08:32:22 +0000 (10:32 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 10 May 2012 08:32:22 +0000 (10:32 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
hw/apohw.c

index 6ba5922a8866c074965bd941d9997b1cee54edb8..908a55f8540e3a6e6727ebcda5f520e0fd281869 100644 (file)
@@ -525,7 +525,7 @@ static void apoterm_display_update(apohw_state_t *d)
        snprintf(buff, STR_BUFF, "LED:  [ ][ ][ ][ ][ ][ ][ ][ ]\n\r");
        for (i = 0; i < 8; i++) {
                if (apoterm->led & (1 << i))
-                       buff[strlen(buff) - 3 - (3*i)] = '*';
+                       buff[strlen(buff) - 4 - (3*i)] = '*';
        }
 
        socket_write(d, buff, strlen(buff));