D868UV: do not skip first region when writing.
This commit is contained in:
parent
b9eeb2bfd2
commit
b929ebe204
6
d868uv.c
6
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)
|
static void d868uv_upload(radio_device_t *radio, int cont_flag)
|
||||||
{
|
{
|
||||||
fragment_t *f;
|
fragment_t *f;
|
||||||
unsigned file_offset;
|
unsigned file_offset = 0;
|
||||||
unsigned last_printed = 0;
|
unsigned last_printed = 0;
|
||||||
|
|
||||||
// Skip first region.
|
for (f=region_map; f->length; f++) {
|
||||||
file_offset = region_map[0].length;
|
|
||||||
for (f=region_map+1; f->length; f++) {
|
|
||||||
unsigned addr = f->address;
|
unsigned addr = f->address;
|
||||||
unsigned nbytes = f->length;
|
unsigned nbytes = f->length;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user