Revert "bugfix to make console work again"

This reverts commit 1210f5bb
This commit is contained in:
rusefi 2019-12-21 15:02:27 -05:00
parent b9338b4047
commit 1f86714f07
1 changed files with 0 additions and 8 deletions

View File

@ -20,7 +20,6 @@ import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import java.util.Objects;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
@ -394,10 +393,6 @@ public class BinaryProtocol implements BinaryProtocolCommands {
currentOutputs = response;
for (Sensor sensor : Sensor.values()) {
if (sensor.getType() == null) {
// for example ETB_CONTROL_QUALITY, weird use-case
continue;
}
ByteBuffer bb = ByteBuffer.wrap(response, 1 + sensor.getOffset(), 4);
bb.order(ByteOrder.LITTLE_ENDIAN);
@ -409,9 +404,6 @@ public class BinaryProtocol implements BinaryProtocolCommands {
}
private static double getValueForChannel(ByteBuffer bb, Sensor sensor) {
Objects.requireNonNull(sensor, "sensor");
if (sensor.getType() == null)
throw new NullPointerException("sensor type " + sensor);
switch (sensor.getType()) {
case FLOAT:
return bb.getFloat();