Call to check_iAP_timeout() added to iAPTimer case in usb_midi.xc, as is done in iap.xc.

This should ensure that that iAP2 timeouts happen correctly in iAP + MIDI builds.
This commit is contained in:
Sam Chesney
2014-02-11 17:40:19 +00:00
parent 34640a49d4
commit 11f341ccf6

View File

@@ -352,7 +352,10 @@ void usb_midi(buffered in port:1 ?p_midi_in, port ?p_midi_out,
/* Slow timer looking for IDevice plug/unplug event */
case iAPTimer when timerafter(polltime) :> void:
iap_handle_poll_dev_det(iAPTimer);
if (!iap_handle_poll_dev_det(iAPTimer))
{
check_iAP_timeout(iap_outgoing_buffer, c_iap);
}
break;
#endif
}