console: fixing signed int16 type logging
This commit is contained in:
parent
333ce71923
commit
5261b365f2
|
@ -491,7 +491,7 @@ public class BinaryProtocol implements BinaryProtocolCommands {
|
||||||
int value = bb.getInt();
|
int value = bb.getInt();
|
||||||
SensorCentral.getInstance().setValue(value, sensor);
|
SensorCentral.getInstance().setValue(value, sensor);
|
||||||
} else if (sensor.getType() == FieldType.INT16) {
|
} else if (sensor.getType() == FieldType.INT16) {
|
||||||
int value = bb.getInt() & 0xFFFF;
|
short value = (short) (bb.getInt() & 0xFFFF);
|
||||||
SensorCentral.getInstance().setValue(value, sensor);
|
SensorCentral.getInstance().setValue(value, sensor);
|
||||||
} else if (sensor.getType() == null) {
|
} else if (sensor.getType() == null) {
|
||||||
// do nothing for old text sensors which I am suprised are still in the code
|
// do nothing for old text sensors which I am suprised are still in the code
|
||||||
|
|
|
@ -2,6 +2,9 @@ package com.rusefi.config;
|
||||||
|
|
||||||
public enum FieldType {
|
public enum FieldType {
|
||||||
INT,
|
INT,
|
||||||
|
/**
|
||||||
|
* signed 16 bit type
|
||||||
|
*/
|
||||||
INT16,
|
INT16,
|
||||||
BIT,
|
BIT,
|
||||||
FLOAT;
|
FLOAT;
|
||||||
|
|
|
@ -45,7 +45,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
||||||
* @see EngineSnifferPanel
|
* @see EngineSnifferPanel
|
||||||
*/
|
*/
|
||||||
public class Launcher {
|
public class Launcher {
|
||||||
public static final int CONSOLE_VERSION = 20190221;
|
public static final int CONSOLE_VERSION = 20190302;
|
||||||
public static final boolean SHOW_STIMULATOR = false;
|
public static final boolean SHOW_STIMULATOR = false;
|
||||||
private static final String TAB_INDEX = "main_tab";
|
private static final String TAB_INDEX = "main_tab";
|
||||||
protected static final String PORT_KEY = "port";
|
protected static final String PORT_KEY = "port";
|
||||||
|
|
Loading…
Reference in New Issue