mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[hal] JNI setDIO: use a boolean and not a short (#3469)
This commit is contained in:
@@ -57,7 +57,7 @@ public class DigitalOutput extends DigitalSource implements Sendable {
|
||||
* @param value true is on, off is false
|
||||
*/
|
||||
public void set(boolean value) {
|
||||
DIOJNI.setDIO(m_handle, (short) (value ? 1 : 0));
|
||||
DIOJNI.setDIO(m_handle, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user