parent
9bd1a6cd67
commit
47ba22ecdd
|
@ -209,13 +209,12 @@ pins:
|
|||
function: Coil 1
|
||||
type: ign
|
||||
|
||||
|
||||
- pin: 33a
|
||||
class: digital_inputs
|
||||
meta: MM100_MEGA_UAEFI_IN_AUX3
|
||||
class: switch_inputs
|
||||
ts_name: DIN
|
||||
function: Digital input signal
|
||||
|
||||
|
||||
- pin: 34a
|
||||
function: CAM Sensor Exhaust
|
||||
meta: MM100_IN_D3
|
||||
|
@ -503,12 +502,16 @@ pins:
|
|||
type: can
|
||||
|
||||
- pin: 84a
|
||||
class: digital_inputs
|
||||
meta: MM100_IN_CRANK
|
||||
class: switch_inputs
|
||||
color: yellow
|
||||
ts_name: BUTTON1
|
||||
function: BUTTON1 sensor
|
||||
|
||||
- pin: 85a
|
||||
class: digital_inputs
|
||||
meta: MM100_IN_CAM
|
||||
class: switch_inputs
|
||||
color: green
|
||||
ts_name: BUTTON2
|
||||
function: BUTTON2 sensor
|
||||
|
||||
|
@ -534,7 +537,9 @@ pins:
|
|||
type: ls
|
||||
|
||||
- pin: 89a
|
||||
class: digital_inputs
|
||||
meta: MM100_IN_D4
|
||||
class: switch_inputs
|
||||
color: grey
|
||||
ts_name: BUTTON3
|
||||
function: BUTTON3 input
|
||||
|
||||
|
|
|
@ -214,7 +214,7 @@ public class PinoutLogic {
|
|||
}
|
||||
} else if (pinId instanceof String) {
|
||||
String pinIdString = (String) pinId;
|
||||
if (pinIdString.length() == 0) {
|
||||
if (pinIdString.isEmpty()) {
|
||||
throw new IllegalStateException("Unexpected empty ID field");
|
||||
}
|
||||
// array type is allowed even for pins with non-array class
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rusefi;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public enum PinType {
|
||||
OUTPUTS("output_pin_e", "Gpio", "Unassigned"),
|
||||
ANALOG_INPUTS("adc_channel_e", "adc_channel_e", "EFI_ADC_NONE"),
|
||||
|
@ -36,6 +38,6 @@ public enum PinType {
|
|||
return pinType;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException(key + " not expected, possible keys are " + values());
|
||||
throw new IllegalArgumentException(key + " not expected, possible keys are " + Arrays.toString(values()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue