From 4e4a1db6c0107ba6491a06ad82515246f97402c0 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 15 Aug 2007 18:50:00 +0200 Subject: [PATCH] wrong bank0/2 addresses --- betty/fwflash.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/betty/fwflash.c b/betty/fwflash.c index 4462654..8d837e7 100644 --- a/betty/fwflash.c +++ b/betty/fwflash.c @@ -18,8 +18,6 @@ /* band 0/2 addr */ #define BANK0 0x80000000 #define BANK2 0x82000000 -#define B0HB 0x00000000 -#define B2HB 0x02000000 /* commands */ #define CMD_READ 'R' @@ -143,9 +141,9 @@ SEND_OK break; case CMD_CHIP_ERASE: if(buf[0]=='0') - addr=B0HB; + addr=BANK0; else if(buf[0]=='2') - addr=B2HB; + addr=BANK2; else break; // cycle 1 -- 2.39.2