mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2025-04-21 12:27:27 +03:00
tools/antorcha.c (send_image): fix packet type
Argh. Image upload now seems to work.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user