Send device info list response.

This commit is contained in:
2019-10-13 15:11:45 +01:00
parent 71ba668c44
commit dfe72a990e
3 changed files with 49 additions and 0 deletions

View File

@@ -43,4 +43,19 @@ void FreeDeviceInfoList(DeviceInfoList* start)
start = current->next;
free(current);
}
}
uint16_t DeviceInfoListCount(DeviceInfoList* start)
{
uint16_t count = 0;
DeviceInfoList* current;
while(start)
{
current = start;
start = current->next;
count++;
}
return count;
}