Fix swapped bytes when sending a "Request DTCs" message in UDS scanner.

This commit is contained in:
Collin Kidder
2023-01-12 20:01:09 -05:00
parent 62bf89761d
commit 6bb980920f
+1 -1
View File
@@ -643,7 +643,7 @@ void UDSScanWindow::setupScan(int idx)
case ST_READ_DTC:
test.service = UDS_SERVICES::READ_DTC;
test.subFuncLen = 2;
test.subFunc = 0x8702; //get DTCs by mask (87 is the mask)
test.subFunc = 0x02FF; //get DTCs by mask (FF is the mask)
sendOnBuses(test, scanEntries[idx].busToScan);
break;
case ST_SEC_ACCESS: