replace usb_poll_validate_length() by data_available() that supports USART too

This commit is contained in:
Philippe Teuwen 2019-06-03 00:01:08 +02:00
commit 3b12ba2e93
21 changed files with 50 additions and 41 deletions

View file

@ -33,7 +33,7 @@ void RunMod() {
WDT_HIT();
// exit from SamyRun, send a usbcommand.
if (usb_poll_validate_length()) break;
if (data_available()) break;
// Was our button held down or pressed?
int button_pressed = BUTTON_HELD(1000);