From d77e3a23fd784d49421b6c6263677e58b5313c2e Mon Sep 17 00:00:00 2001 From: Dale Schultz Date: Sun, 28 Jul 2013 18:16:52 -0400 Subject: [PATCH] Added PLX sensor address 4032 as a bogus type. --- .../romraider/logger/external/plx/io/TestPlxConnection.java | 6 +++++- .../romraider/logger/external/plx/plugin/PlxSensorType.java | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/romraider/logger/external/plx/io/TestPlxConnection.java b/src/main/java/com/romraider/logger/external/plx/io/TestPlxConnection.java index 9a0c3833..8b5f9c73 100644 --- a/src/main/java/com/romraider/logger/external/plx/io/TestPlxConnection.java +++ b/src/main/java/com/romraider/logger/external/plx/io/TestPlxConnection.java @@ -1,6 +1,6 @@ /* * RomRaider Open-Source Tuning, Logging and Reflashing - * Copyright (C) 2006-2012 RomRaider.com + * Copyright (C) 2006-2013 RomRaider.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,10 @@ public final class TestPlxConnection implements SerialConnection { 0x00, 0x00, 0x01, 0x00, 0x09, // AFR 1 0x00, 0x01, 0x00, 0x1F, 0x3F, // EGT 0 0x00, 0x02, 0x00, 0x00, 0x3F, // Fluid Temp 0 + 0x40, + (byte) 0x80, + 0x00, 0x00, 0x00, 0x01, 0x2f, // AFR 0 + 0x3f, 0x00, 0x00, 0x00, 0x00, // bogus sensor 0x40}; private int index; private byte[] result = new byte[1]; diff --git a/src/main/java/com/romraider/logger/external/plx/plugin/PlxSensorType.java b/src/main/java/com/romraider/logger/external/plx/plugin/PlxSensorType.java index 91d7063a..c69b469e 100644 --- a/src/main/java/com/romraider/logger/external/plx/plugin/PlxSensorType.java +++ b/src/main/java/com/romraider/logger/external/plx/plugin/PlxSensorType.java @@ -1,6 +1,6 @@ /* * RomRaider Open-Source Tuning, Logging and Reflashing - * Copyright (C) 2006-2012 RomRaider.com + * Copyright (C) 2006-2013 RomRaider.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,7 @@ public enum PlxSensorType { VOLTAGE(18), KNOCK(19), DUTY_CYCLE(20), + BOGUS(4032), UNKNOWN(-1); private final int value;