From: Stephan Baerwolf Date: Mon, 30 Jul 2012 21:43:45 +0000 (+0000) Subject: BUGfix: ensure model-depended serial commands are only applied to correct model X-Git-Tag: 2010-07-27-stephan-201207310030~3 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/d860aa2825437d367057ca783962420126854391 BUGfix: ensure model-depended serial commands are only applied to correct model Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/main.c b/firmware/main.c index bd4eebf..b3f1470 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -168,6 +168,7 @@ static uchar replyBuffer[4]; rval = rq->wIndex.bytes[0] & 3; rval = signatureBytes[rval]; #if HAVE_READ_LOCK_FUSE +#if defined (__AVR_ATmega8__) }else if(rq->wValue.bytes[0] == 0x58 && rq->wValue.bytes[1] == 0x00){ /* read lock bits */ rval = boot_lock_fuse_bits_get(GET_LOCK_BITS); }else if(rq->wValue.bytes[0] == 0x50 && rq->wValue.bytes[1] == 0x00){ /* read lfuse bits */ @@ -175,6 +176,7 @@ static uchar replyBuffer[4]; }else if(rq->wValue.bytes[0] == 0x58 && rq->wValue.bytes[1] == 0x08){ /* read hfuse bits */ rval = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS); #endif +#endif #if HAVE_EEPROM_BYTE_ACCESS }else if(rq->wValue.bytes[0] == 0xa0){ /* read EEPROM byte */ rval = eeprom_read_byte((void *)address.word);