From 6bf6a20d268679daf3a6d489dee2f8dca5e8e1a1 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 25 Oct 2011 19:04:31 -0400 Subject: closer still - now up to 4680 --- bootloaders/nuevo_diskloader/src/DiskLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bootloaders/nuevo_diskloader/src') diff --git a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp index 3b8657e..8088b7b 100644 --- a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp +++ b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp @@ -242,7 +242,8 @@ int main() u16 countdown = 5000; while (countdown-- > 10 && !USB_Available(CDC_RX)) ; - if (USB_Recv(CDC_RX) != ' ') + int x = USB_Recv(CDC_RX); + if (x != -1 && x != ' ') break; USB_Send(CDC_TX, &_inSync, 1); -- cgit v1.2.3-18-g5258