Skip to content

Commit

Permalink
Merge pull request gregjhogan#2 from vanillagorillaa/master
Browse files Browse the repository at this point in the history
Fix saftey mode for new panda versions
  • Loading branch information
gregjhogan authored Dec 21, 2019
2 parents b7ed3c1 + 26b238d commit 59269ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uds.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class UdsClient {
// TODO: fix the exception that this throws
// TypeError: Cannot read property 'toString' of undefined
try {
await this.panda.setSafetyMode(0x1337)
await this.panda.setSafetyMode(17)
} catch {}

// forgot to implement can clear in pandajs ?!?
Expand Down Expand Up @@ -951,4 +951,4 @@ export class UdsClient {
request_transfer_exit = async () => {
await this._uds_request(SERVICE_TYPE.REQUEST_TRANSFER_EXIT, undefined)
}
}
}

0 comments on commit 59269ec

Please sign in to comment.