From: hackbard Date: Wed, 15 Aug 2007 16:50:00 +0000 (+0200) Subject: wrong bank0/2 addresses X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4a1db6c0107ba6491a06ad82515246f97402c0;p=my-code%2Farm.git wrong bank0/2 addresses --- 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