From b929ebe204bbd7338a06d2a7339dc92736e8b2c8 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Mon, 29 Oct 2018 21:43:42 -0700 Subject: [PATCH] D868UV: do not skip first region when writing. --- d868uv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/d868uv.c b/d868uv.c index a0fd907..dd9419c 100644 --- a/d868uv.c +++ b/d868uv.c @@ -456,12 +456,10 @@ static void d868uv_download(radio_device_t *radio) static void d868uv_upload(radio_device_t *radio, int cont_flag) { fragment_t *f; - unsigned file_offset; + unsigned file_offset = 0; unsigned last_printed = 0; - // Skip first region. - file_offset = region_map[0].length; - for (f=region_map+1; f->length; f++) { + for (f=region_map; f->length; f++) { unsigned addr = f->address; unsigned nbytes = f->length;