Skip to content

Commit

Permalink
[opt]:opt error form dec to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie-zeng committed Nov 22, 2024
1 parent bb8dccb commit a3bfdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/share/uds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function applyBuffer(service:ServiceItem,data: Buffer,isReq:boolean) {
}

if(sid!=Number(service.serviceId)){
throw new Error(`serviceId not match, expect ${service.serviceId} but got ${sid}`)
throw new Error(`serviceId not match, expect ${service.serviceId} but got 0x${sid.toString(16)}`)
}
const params=isReq?service.params:service.respParams
/* remove left param */
Expand Down

0 comments on commit a3bfdb0

Please sign in to comment.