From 87f0ed17fcd9a3d8f64436209577edeab4bb847d Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 20 Jun 2012 17:17:23 -0300 Subject: [PATCH] tools/antorcha.c (send_image): fix packet type Argh. Image upload now seems to work. --- tools/antorcha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/antorcha.c b/tools/antorcha.c index 42e2367..d0ca4d8 100644 --- a/tools/antorcha.c +++ b/tools/antorcha.c @@ -233,7 +233,7 @@ static void send_image(struct atrf_dsc *dsc, void *buf, int len) if (len) { memcpy(payload, buf, 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); }