projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae55407
)
Send correct region value
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Thu, 18 Feb 2016 20:58:23 +0000
(21:58 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Thu, 18 Feb 2016 20:58:23 +0000
(21:58 +0100)
nmrp.c
patch
|
blob
|
history
diff --git
a/nmrp.c
b/nmrp.c
index 2a801f1d702ac0f3c7c062de65785a20ee84111a..db351fa231a9e61759a750ecea6468356a7edcbc 100644
(file)
--- a/
nmrp.c
+++ b/
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