Cleanups to the MassStorage Device demos, and the MassStorage Device Class driver.
[pub/USBasp.git] / Demos / Device / Incomplete / Sideshow / Lib / SideshowApplications.c
index f2789c4..4f27c33 100644 (file)
 SideShow_Application_t InstalledApplications[MAX_APPLICATIONS];\r
 \r
 \r
-uint8_t SideShow_GetTotalApplications(void)\r
-{\r
-       uint8_t TotalInstalledApps = 0;\r
-       \r
-       for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++)\r
-       {\r
-               if (InstalledApplications[App].InUse)\r
-                 TotalInstalledApps++;\r
-       }\r
-       \r
-       return TotalInstalledApps;      \r
-}\r
-\r
 SideShow_Application_t* SideShow_GetFreeApplication(void)\r
 {\r
        for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++)\r
@@ -63,7 +50,7 @@ SideShow_Application_t* SideShow_GetApplicationFromGUID(GUID_t* GUID)
        {\r
                if (InstalledApplications[App].InUse)\r
                {\r
-                       if (memcmp(&InstalledApplications[App].ApplicationID, GUID, sizeof(GUID_t)) == 0)\r
+                       if (GUID_COMPARE(&InstalledApplications[App].ApplicationID, GUID))\r
                          return &InstalledApplications[App];\r
                }\r
        }\r