X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/292fc9b65eba6b874dd4c29087cf499123f8bd0c..cf22a744ec0da3b68c4ffdb14c6fa43f2e07542f:/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c index f2789c4a7..4f27c3336 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c @@ -33,19 +33,6 @@ SideShow_Application_t InstalledApplications[MAX_APPLICATIONS]; -uint8_t SideShow_GetTotalApplications(void) -{ - uint8_t TotalInstalledApps = 0; - - for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++) - { - if (InstalledApplications[App].InUse) - TotalInstalledApps++; - } - - return TotalInstalledApps; -} - SideShow_Application_t* SideShow_GetFreeApplication(void) { for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++) @@ -63,7 +50,7 @@ SideShow_Application_t* SideShow_GetApplicationFromGUID(GUID_t* GUID) { if (InstalledApplications[App].InUse) { - if (memcmp(&InstalledApplications[App].ApplicationID, GUID, sizeof(GUID_t)) == 0) + if (GUID_COMPARE(&InstalledApplications[App].ApplicationID, GUID)) return &InstalledApplications[App]; } }