From: Dean Camera Date: Wed, 20 Nov 2013 19:20:22 +0000 (+0100) Subject: Fix incorrect status constants in the AVRISP-MKII Clone project. X-Git-Tag: LUFA-140302~36 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/8edd56194859c47fe3d779594dfe1ece7076613c?ds=inline;hp=--cc Fix incorrect status constants in the AVRISP-MKII Clone project. --- 8edd56194859c47fe3d779594dfe1ece7076613c diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolConstants.h b/Projects/AVRISP-MKII/Lib/V2ProtocolConstants.h index 4c68ffdc4..927c5565b 100644 --- a/Projects/AVRISP-MKII/Lib/V2ProtocolConstants.h +++ b/Projects/AVRISP-MKII/Lib/V2ProtocolConstants.h @@ -67,11 +67,12 @@ #define STATUS_SET_PARAM_MISSING 0x82 #define STATUS_CMD_FAILED 0xC0 #define STATUS_CMD_UNKNOWN 0xC9 - #define STATUS_ISP_READY 0x00 + #define STATUS_CMD_ILLEGAL_PARAM 0xCA + #define STATUS_ISP_READY 0x10 #define STATUS_CONN_FAIL_MOSI 0x01 #define STATUS_CONN_FAIL_RST 0x02 #define STATUS_CONN_FAIL_SCK 0x04 - #define STATUS_TGT_NOT_DETECTED 0x10 + #define STATUS_TGT_NOT_DETECTED 0x00 #define STATUS_TGT_REVERSE_INSERTED 0x20 #define PARAM_BUILD_NUMBER_LOW 0x80 diff --git a/Projects/MIDIToneGenerator/MIDIToneGenerator.c b/Projects/MIDIToneGenerator/MIDIToneGenerator.c index ed2d33420..2ccd2ef36 100644 --- a/Projects/MIDIToneGenerator/MIDIToneGenerator.c +++ b/Projects/MIDIToneGenerator/MIDIToneGenerator.c @@ -110,7 +110,7 @@ int main(void) /* Check if the note is unused */ if (!(NoteData[i].Pitch)) { - /* If a note is unused, it's age is essentially infinite - always prefer unused not entries */ + /* If a note is unused, it's age is essentially infinite - always prefer unused note entries */ LRUNoteStruct = &NoteData[i]; break; }