Closed bill-egert closed 1 year ago
void printBasicID_data(ODID_BasicID_data *BasicID) { // Ensure the ID is null-terminated char buf[ODID_ID_SIZE + 1] = { 0 }; memcpy(buf, BasicID->UASID, ODID_ID_SIZE); const char ODID_BasicID_data_format[] = "UAType: %d\nIDType: %d\nUASID: %s\n"; printf(ODID_BasicID_data_format, BasicID->IDType, BasicID->UAType, buf); }
The IDType and UAType are swapped from whats printed.
Indeed they are. Thanks for spotting.
The IDType and UAType are swapped from whats printed.