App 2.22.2: gear badge shows P, R, N and D
Codes read on the owner's car with 2.22.1: 1 P, 2 R, 3 N, 4 D. Gear maps them (unit-tested); other codes show no letter, unread "—". The temporary gear list on the Logs tab is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
@@ -2118,9 +2118,9 @@ object EVHardware {
|
||||
fun isVehicleInPark(): Boolean? = getGearRaw()?.let { it == GEAR_PARK_VALUE }
|
||||
|
||||
/**
|
||||
* The gear as the car's own code, null if unreadable. Only P = 1 is established (see
|
||||
* [isVehicleInPark]); the other codes are passed on unnamed so the app can show them and
|
||||
* the driver can match them to R, N and D.
|
||||
* The gear as the car's own code, null if unreadable. P = 1 on every studied firmware (see
|
||||
* [isVehicleInPark]); on an MG4 with SWI68 (SWI68-29958-1300R69) the owner read 1 P, 2 R,
|
||||
* 3 N, 4 D by shifting through the lever.
|
||||
*/
|
||||
fun getGearRaw(): Int? {
|
||||
val gen = FirmwareInfo.getGeneration()
|
||||
|
||||
Reference in New Issue
Block a user