Fixed error receiving PIMA events via the Still Image Host class driver.
[pub/lufa.git] / LUFA / Drivers / USB / Class / Host / StillImageClassHost.c
index bcdd1d6..5b317f9 100644 (file)
@@ -302,7 +302,7 @@ bool SI_Host_IsEventReceived(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo)
        Pipe_SelectPipe(SIInterfaceInfo->Config.EventsPipe.Address);
        Pipe_Unfreeze();
 
-       if (Pipe_BytesInPipe())
+       if (Pipe_IsINReceived())
          IsEventReceived = true;
 
        Pipe_Freeze();