mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
committed by
Peter Johnson
parent
94c31ceeb1
commit
2d78fdabb8
@@ -217,7 +217,7 @@ public class SerialPort {
|
||||
* @return The number of bytes available to read.
|
||||
*/
|
||||
public int getBytesReceived() {
|
||||
return SerialPortJNI.serialGetBytesRecieved(m_port);
|
||||
return SerialPortJNI.serialGetBytesReceived(m_port);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ public class OSSerialPortJNI extends JNIWrapper {
|
||||
|
||||
public static native void serialSetWriteBufferSize(byte port, int size);
|
||||
|
||||
public static native int serialGetBytesRecieved(byte port);
|
||||
public static native int serialGetBytesReceived(byte port);
|
||||
|
||||
public static native int serialRead(byte port, ByteBuffer buffer, int count);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SerialPortJNI extends JNIWrapper {
|
||||
|
||||
public static native void serialSetWriteBufferSize(byte port, int size);
|
||||
|
||||
public static native int serialGetBytesRecieved(byte port);
|
||||
public static native int serialGetBytesReceived(byte port);
|
||||
|
||||
public static native int serialRead(byte port, ByteBuffer buffer, int count);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user