mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Fixes incorrectly changed Java enums (#360)
Some enums need a specific value when they get passed to JNI
This commit is contained in:
committed by
Peter Johnson
parent
69422dc063
commit
1ddf45bd11
@@ -58,7 +58,7 @@ public class SerialPort {
|
||||
* Represents the number of stop bits to use for Serial Communication.
|
||||
*/
|
||||
public enum StopBits {
|
||||
kOne(0), kOnePointFive(1), kTwo(2);
|
||||
kOne(10), kOnePointFive(15), kTwo(20);
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int value;
|
||||
@@ -72,7 +72,7 @@ public class SerialPort {
|
||||
* Represents what type of flow control to use for serial communication.
|
||||
*/
|
||||
public enum FlowControl {
|
||||
kNone(0), kXonXoff(1), kRtsCts(2), kDtsDsr(3);
|
||||
kNone(0), kXonXoff(1), kRtsCts(2), kDtsDsr(4);
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int value;
|
||||
@@ -86,7 +86,7 @@ public class SerialPort {
|
||||
* Represents which type of buffer mode to use when writing to a serial m_port.
|
||||
*/
|
||||
public enum WriteBufferMode {
|
||||
kFlushOnAccess(0), kFlushWhenFull(1);
|
||||
kFlushOnAccess(1), kFlushWhenFull(2);
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int value;
|
||||
|
||||
Reference in New Issue
Block a user