From 6bb980920f425467f860980d1fcf53860a9f5f03 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Thu, 12 Jan 2023 20:01:09 -0500 Subject: [PATCH] Fix swapped bytes when sending a "Request DTCs" message in UDS scanner. --- re/udsscanwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re/udsscanwindow.cpp b/re/udsscanwindow.cpp index 9c8482b..933a46b 100644 --- a/re/udsscanwindow.cpp +++ b/re/udsscanwindow.cpp @@ -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: