diff --git a/src/ANT.cpp b/src/ANT.cpp index 0ca9ae269..a28597620 100644 --- a/src/ANT.cpp +++ b/src/ANT.cpp @@ -876,8 +876,6 @@ int ANT::rawWrite(uint8_t *bytes, int size) // unix!! int ANT::rawRead(uint8_t bytes[], int size) { - int rc=0; - #ifdef WIN32 switch (usbMode) { case USB1: @@ -887,7 +885,6 @@ int ANT::rawRead(uint8_t bytes[], int size) return usb2->read((char *)bytes, size); break; default: - rc = 0; break; } @@ -904,13 +901,14 @@ int ANT::rawRead(uint8_t bytes[], int size) // read one byte at a time sleeping when no data ready // until we timeout waiting then return error for (i=0; i