Fix usage reporting indices (#2009)

According to NI, 0 is unspecified, and all the indices need to be
index + 1, so the first index becomes 1.
This commit is contained in:
Thad House
2019-10-29 21:34:10 -07:00
committed by Peter Johnson
parent f6b844ea30
commit 9dc30797e4
74 changed files with 95 additions and 94 deletions

View File

@@ -27,7 +27,7 @@ CAN::CAN(int deviceId) {
return;
}
HAL_Report(HALUsageReporting::kResourceType_CAN, deviceId);
HAL_Report(HALUsageReporting::kResourceType_CAN, deviceId + 1);
}
CAN::CAN(int deviceId, int deviceManufacturer, int deviceType) {
@@ -41,7 +41,7 @@ CAN::CAN(int deviceId, int deviceManufacturer, int deviceType) {
return;
}
HAL_Report(HALUsageReporting::kResourceType_CAN, deviceId);
HAL_Report(HALUsageReporting::kResourceType_CAN, deviceId + 1);
}
CAN::~CAN() {