mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-01 09:24:05 +02:00
tools/antorcha.c (send_image): fix packet type
Argh. Image upload now seems to work.
This commit is contained in:
parent
625f262e1d
commit
87f0ed17fc
@ -233,7 +233,7 @@ static void send_image(struct atrf_dsc *dsc, void *buf, int len)
|
|||||||
if (len) {
|
if (len) {
|
||||||
memcpy(payload, buf, len);
|
memcpy(payload, buf, len);
|
||||||
memset(payload+len, 0, PAYLOAD-len);
|
memset(payload+len, 0, PAYLOAD-len);
|
||||||
packet(dsc, FIRMWARE, seq++, last, payload, PAYLOAD);
|
packet(dsc, IMAGE, seq++, last, payload, PAYLOAD);
|
||||||
hash_merge(payload, PAYLOAD);
|
hash_merge(payload, PAYLOAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user