auto-sync
This commit is contained in:
parent
4e15b989f2
commit
d807d3c20e
|
@ -235,7 +235,7 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
setFrankenso_01_LCD(boardConfiguration);
|
setFrankenso_01_LCD(boardConfiguration);
|
||||||
setFrankenso0_1_joystick(engineConfiguration);
|
setFrankenso0_1_joystick(engineConfiguration);
|
||||||
|
|
||||||
boardConfiguration->useWarmupPidAfr = true;
|
// boardConfiguration->useWarmupPidAfr = true;
|
||||||
|
|
||||||
// set_global_trigger_offset_angle 38
|
// set_global_trigger_offset_angle 38
|
||||||
engineConfiguration->globalTriggerAngleOffset = 38;
|
engineConfiguration->globalTriggerAngleOffset = 38;
|
||||||
|
|
|
@ -80,10 +80,13 @@ public class PortHolder {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setupPort(SerialPort serialPort, int baudRate) throws SerialPortException {
|
public static void setupPort(SerialPort serialPort, int baudRate) throws SerialPortException {
|
||||||
|
serialPort.setRTS(false);
|
||||||
|
serialPort.setDTR(false);
|
||||||
serialPort.setParams(baudRate, 8, 1, 0);//Set params.
|
serialPort.setParams(baudRate, 8, 1, 0);//Set params.
|
||||||
int mask = SerialPort.MASK_RXCHAR;
|
int mask = SerialPort.MASK_RXCHAR;
|
||||||
//Set the prepared mask
|
//Set the prepared mask
|
||||||
serialPort.setEventsMask(mask);
|
serialPort.setEventsMask(mask);
|
||||||
|
serialPort.setFlowControlMode(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
|
|
Loading…
Reference in New Issue