X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..f9781ca6ff755602248f6fb050432fc81781cf98:/Projects/AVRISP-MKII/Lib/V2Protocol.c?ds=inline diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c index 093c07862..976f24b9e 100644 --- a/Projects/AVRISP-MKII/Lib/V2Protocol.c +++ b/Projects/AVRISP-MKII/Lib/V2Protocol.c @@ -58,6 +58,7 @@ void V2Protocol_ProcessCommand(void) { uint8_t V2Command = Endpoint_Read_Byte(); + /* Set total command processing timeout value, enable timeout management interrupt */ TimeoutMSRemaining = COMMAND_TIMEOUT_MS; TIMSK0 |= (1 << OCIE0A); @@ -121,6 +122,7 @@ void V2Protocol_ProcessCommand(void) break; } + /* Disable timeout management interrupt once processing has completed */ TIMSK0 &= ~(1 << OCIE0A); Endpoint_WaitUntilReady(); @@ -162,8 +164,8 @@ static void V2Protocol_SignOn(void) Endpoint_ClearIN(); } -/** Handler for the CMD_RESET_PROTECTION command, currently implemented as a dummy ACK function - * as no ISP short-circuit protection is currently implemented. +/** Handler for the CMD_RESET_PROTECTION command, implemented as a dummy ACK function as + * no target short-circuit protection is currently implemented. */ static void V2Protocol_ResetProtection(void) {