From 98a44d874442b1edb0c4c38aafca22adbd47af59 Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Thu, 4 Dec 2014 21:43:54 +1100 Subject: [PATCH] forgot to save all files before I commited the last change --- STM32F1XX/cores/maple/usb_serial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STM32F1XX/cores/maple/usb_serial.cpp b/STM32F1XX/cores/maple/usb_serial.cpp index 0645515..c3c2811 100644 --- a/STM32F1XX/cores/maple/usb_serial.cpp +++ b/STM32F1XX/cores/maple/usb_serial.cpp @@ -176,7 +176,7 @@ int USBSerial::read(void) { return b; */ - if (!usb_cdcacm_rx(&b, 1)) + if (usb_cdcacm_rx(&b, 1)==0) { return -1; }