diff --git a/wpilibj/src/main/java/org/wpilib/hardware/bus/SerialPort.java b/wpilibj/src/main/java/org/wpilib/hardware/bus/SerialPort.java index ac0bbe3925..80ecd3a380 100644 --- a/wpilibj/src/main/java/org/wpilib/hardware/bus/SerialPort.java +++ b/wpilibj/src/main/java/org/wpilib/hardware/bus/SerialPort.java @@ -325,10 +325,10 @@ public class SerialPort implements AutoCloseable { /** * Specify the flushing behavior of the output buffer. * - *
When set to kFlushOnAccess, data is synchronously written to the serial port after each call - * to either print() or write(). + *
When set to FLUSH_ON_ACCESS, data is synchronously written to the serial port after each + * call to either print() or write(). * - *
When set to kFlushWhenFull, data will only be written to the serial port when the buffer is + *
When set to FLUSH_WHEN_FULL, data will only be written to the serial port when the buffer is * full or when flush() is called. * * @param mode The write buffer mode. @@ -340,7 +340,7 @@ public class SerialPort implements AutoCloseable { /** * Force the output buffer to be written to the port. * - *
This is used when setWriteBufferMode() is set to kFlushWhenFull to force a flush before the + *
This is used when setWriteBufferMode() is set to FLUSH_WHEN_FULL to force a flush before the * buffer is full. */ public void flush() {