diff options
Diffstat (limited to 'bootloaders/nuevo_diskloader/src/DiskLoader.cpp')
-rw-r--r-- | bootloaders/nuevo_diskloader/src/DiskLoader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |