From: Michael Gernoth Date: Sat, 15 Feb 2014 10:01:50 +0000 (+0100) Subject: handle switch to and from FUP-mode X-Git-Tag: v0.100~40 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/53d7bde277d9bc02e80195c4cbe44a97f21facd5 handle switch to and from FUP-mode To enter firmware-update-mode send: G64 To leave firmware-update-mode send: G0A --- diff --git a/hmland.c b/hmland.c index 68ce00e..fd2d09e 100644 --- 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);