X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/687b7b5c29c03d50735ee0036b9a6884b54b0a18..d860aa2825437d367057ca783962420126854391:/firmware/main.c?ds=inline 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);