mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilibj] Add unit tests (#3501)
This commit is contained in:
@@ -147,15 +147,15 @@ public final class HALValue {
|
||||
*/
|
||||
public static HALValue fromNative(int type, long value1, double value2) {
|
||||
switch (type) {
|
||||
case 0x01:
|
||||
case kBoolean:
|
||||
return makeBoolean(value1 != 0);
|
||||
case 0x02:
|
||||
case kDouble:
|
||||
return makeDouble(value2);
|
||||
case 0x16:
|
||||
case kEnum:
|
||||
return makeEnum((int) value1);
|
||||
case 0x32:
|
||||
case kInt:
|
||||
return makeInt((int) value1);
|
||||
case 0x64:
|
||||
case kLong:
|
||||
return makeLong(value1);
|
||||
default:
|
||||
return makeUnassigned();
|
||||
|
||||
Reference in New Issue
Block a user