From b47c912d1a9ae02adf4ec98254c908813337de9a Mon Sep 17 00:00:00 2001 From: Eric Thiebaut-George Date: Thu, 10 Sep 2015 14:58:59 +0100 Subject: [PATCH] MERC-792 Fixed toggle issue --- Usb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Usb.cpp b/Usb.cpp index 2703c034..5098e49b 100644 --- a/Usb.cpp +++ b/Usb.cpp @@ -234,7 +234,7 @@ uint8_t USB::InTransfer(EpInfo *pep, uint16_t nak_limit, uint16_t *nbytesptr, ui rcode = dispatchPkt(tokIN, pep->epAddr, nak_limit); //IN packet to EP-'endpoint'. Function takes care of NAKS. if(rcode == hrTOGERR) { // yes, we flip it wrong here so that next time it is actually correct! - pep->bmRcvToggle = (regRd(rHRSL) & bmRCVTOGRD) ? 0 : 1; + pep->bmRcvToggle = (regRd(rHRSL) & bmRCVTOGRD) ? 1 : 0; regWr(rHCTL, (pep->bmRcvToggle) ? bmRCVTOG1 : bmRCVTOG0); //set toggle value continue; }