Send correct region value
This commit is contained in:
parent
ae55407452
commit
cbb94be759
1 changed files with 3 additions and 2 deletions
5
nmrp.c
5
nmrp.c
|
|
@ -376,7 +376,7 @@ int nmrp_do(struct nmrpd_args *args)
|
|||
{
|
||||
struct nmrp_pkt tx, rx;
|
||||
uint8_t *src, dest[6];
|
||||
uint16_t len;
|
||||
uint16_t len, region;
|
||||
char *filename;
|
||||
time_t beg;
|
||||
int i, status, ulreqs, expect, upload_ok;
|
||||
|
|
@ -514,7 +514,8 @@ int nmrp_do(struct nmrpd_args *args)
|
|||
|
||||
#ifdef NMRPFLASH_SET_REGION
|
||||
if (args->region) {
|
||||
msg_opt_add(&tx.msg, NMRP_O_DEV_REGION, &args->region, 2);
|
||||
region = htons(args->region);
|
||||
msg_opt_add(&tx.msg, NMRP_O_DEV_REGION, ®ion, 2);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue