Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin).

pull/1469/head
Dean Camera 12 years ago
parent 280fc85d1b
commit 39ffce948a

@ -53,6 +53,7 @@
* - Fixed lengthy timeouts in the USBtoSerial project if no application on the host is consuming data (thanks to Nicolas Saugnier) * - Fixed lengthy timeouts in the USBtoSerial project if no application on the host is consuming data (thanks to Nicolas Saugnier)
* - Fixed lengthy automatic data flushing in the CDC and MIDI device class drivers * - Fixed lengthy automatic data flushing in the CDC and MIDI device class drivers
* - Fixed incorrect LED masks for received data display in the Device GenericHID demos (thanks to Denys Berkovskyy) * - Fixed incorrect LED masks for received data display in the Device GenericHID demos (thanks to Denys Berkovskyy)
* - Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin)
* *
* \section Sec_ChangeLog120730 Version 120730 * \section Sec_ChangeLog120730 Version 120730
* <b>New:</b> * <b>New:</b>

@ -89,7 +89,7 @@ int main(void)
*/ */
void RetrieveDeviceData(void) void RetrieveDeviceData(void)
{ {
if (USB_CurrentMode != USB_MODE_Host) if (USB_HostState != HOST_STATE_Configured)
return; return;
LEDs_SetAllLEDs(LEDMASK_USB_BUSY); LEDs_SetAllLEDs(LEDMASK_USB_BUSY);

Loading…
Cancel
Save