From 2a7aeeaedd5dec597c6d5318a05c684b11d3cc66 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Fri, 13 Aug 2010 13:01:01 +0100 Subject: [PATCH] Image dimensions are divided by 16 now --- hadie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadie.c b/hadie.c index fe383d9..fcc1f9d 100644 --- a/hadie.c +++ b/hadie.c @@ -39,8 +39,8 @@ void init_packet(uint8_t *packet, uint8_t imageid, uint8_t pktid, uint8_t pkts, packet[2] = imageid; /* Image ID */ packet[3] = pktid; /* Packet ID */ packet[4] = pkts; /* Packets */ - packet[5] = width >> 3; /* Width MCU */ - packet[6] = height >> 3; /* Height MCU */ + packet[5] = width >> 4; /* Width MCU */ + packet[6] = height >> 4; /* Height MCU */ packet[7] = 0xFF; /* Next MCU offset */ packet[8] = 0x00; /* MCU ID MSB */ packet[9] = 0x00; /* MCU ID LSB */