]> cvs.zerfleddert.de Git - hmcfgusb/commitdiff
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 68ce00e2dabbc1454578f1014225690f0841c95f..fd2d09e4881c60c4f739e68282c028ebb06272b1 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -262,6 +262,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);
                        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);
Impressum, Datenschutz