1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-01 09:20:37 +02:00

tools/antorcha.c (send_image): fix packet type

Argh. Image upload now seems to work.
This commit is contained in:
Werner Almesberger 2012-06-20 17:17:23 -03:00
parent 625f262e1d
commit 87f0ed17fc

View File

@ -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);
} }