From 53d7bde277d9bc02e80195c4cbe44a97f21facd5 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 15 Feb 2014 11:01:50 +0100 Subject: [PATCH 1/1] handle switch to and from FUP-mode To enter firmware-update-mode send: G64 To leave firmware-update-mode send: G0A --- hmland.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5