Electrical status "OK" reply is now sent immediately. Before, it was

being buffered, so we didn't get any immediate feedback until the
entire test was finished.
This commit is contained in:
Doug Brown 2012-05-13 09:40:04 -07:00
parent 522ded0973
commit f41d8f193a
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ void USBSerial_HandleWaitingForCommandByte(uint8_t byte)
// sending whatever replies necessary
case DoElectricalTest:
SendByte(CommandReplyOK);
// Force LUFA to send initial "OK" reply immediately in this case
// so the caller gets immediate feedback that the test has started
CDC_Device_Flush(&VirtualSerial_CDC_Interface);
SIMMElectricalTest_Run(USBSerial_ElectricalTest_Fail_Handler);
SendByte(ProgrammerElectricalTestDone);
curCommandState = WaitingForCommand;