handle switch to and from FUP-mode
authorMichael Gernoth <michael@gernoth.net>
Sat, 15 Feb 2014 10:01:50 +0000 (11:01 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sat, 15 Feb 2014 10:01:50 +0000 (11:01 +0100)
To enter firmware-update-mode send: G64
To leave firmware-update-mode send: G0A

hmland.c

index 68ce00e..fd2d09e 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -263,6 +263,10 @@ static int hmlan_format_out(uint8_t *buf, int buf_len, void *data)
                        format_part_out(&inpos, (buf_len-(inpos-buf)), &outpos, (sizeof(out)-(outpos-out)), 1, FLAG_FORMAT_HEX | FLAG_COMMA_BEFORE | FLAG_NL);
 
                        break;
+               case 'G':
+                       format_part_out(&inpos, (buf_len-(inpos-buf)), &outpos, (sizeof(out)-(outpos-out)), 1, FLAG_FORMAT_HEX | FLAG_NL);
+
+                       break;
                default:
                        format_part_out(&inpos, (buf_len-(inpos-buf)), &outpos, (sizeof(out)-(outpos-out)), buf_len-1, FLAG_FORMAT_HEX | FLAG_NL);
                        hexdump(buf, buf_len, "Unknown> ");
Impressum, Datenschutz