mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-31 20:52:13 +01:00
parent
0fc235da76
commit
101677bba2
@ -65,8 +65,8 @@ public class Serial implements SerialPortEventListener {
|
|||||||
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
||||||
PreferencesData.getInteger("serial.databits", 8),
|
PreferencesData.getInteger("serial.databits", 8),
|
||||||
PreferencesData.getFloat("serial.stopbits", 1),
|
PreferencesData.getFloat("serial.stopbits", 1),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableRTS").equalsIgnoreCase("true"),
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableRTS"),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableDTR").equalsIgnoreCase("true"));
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableDTR"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Serial(int irate) throws SerialException {
|
public Serial(int irate) throws SerialException {
|
||||||
@ -74,16 +74,16 @@ public class Serial implements SerialPortEventListener {
|
|||||||
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
||||||
PreferencesData.getInteger("serial.databits", 8),
|
PreferencesData.getInteger("serial.databits", 8),
|
||||||
PreferencesData.getFloat("serial.stopbits", 1),
|
PreferencesData.getFloat("serial.stopbits", 1),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableRTS").equalsIgnoreCase("true"),
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableRTS"),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableDTR").equalsIgnoreCase("true"));
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableDTR"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Serial(String iname, int irate) throws SerialException {
|
public Serial(String iname, int irate) throws SerialException {
|
||||||
this(iname, irate, PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
this(iname, irate, PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
||||||
PreferencesData.getInteger("serial.databits", 8),
|
PreferencesData.getInteger("serial.databits", 8),
|
||||||
PreferencesData.getFloat("serial.stopbits", 1),
|
PreferencesData.getFloat("serial.stopbits", 1),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableRTS").equalsIgnoreCase("true"),
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableRTS"),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableDTR").equalsIgnoreCase("true"));
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableDTR"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Serial(String iname) throws SerialException {
|
public Serial(String iname) throws SerialException {
|
||||||
@ -91,8 +91,8 @@ public class Serial implements SerialPortEventListener {
|
|||||||
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
PreferencesData.getNonEmpty("serial.parity", "N").charAt(0),
|
||||||
PreferencesData.getInteger("serial.databits", 8),
|
PreferencesData.getInteger("serial.databits", 8),
|
||||||
PreferencesData.getFloat("serial.stopbits", 1),
|
PreferencesData.getFloat("serial.stopbits", 1),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableRTS").equalsIgnoreCase("true"),
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableRTS"),
|
||||||
!BaseNoGui.getBoardPreferences().get("serial.disableDTR").equalsIgnoreCase("true"));
|
!BaseNoGui.getBoardPreferences().getBoolean("serial.disableDTR"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean touchForCDCReset(String iname) throws SerialException {
|
public static boolean touchForCDCReset(String iname) throws SerialException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user