mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[hal] Rename SimDevice constants to all caps
Also use enum class for SimDevice C++ wrapper.
This commit is contained in:
@@ -14,7 +14,8 @@ using namespace wpi::sim;
|
||||
|
||||
TEST(SimDeviceSimTest, Basic) {
|
||||
wpi::hal::SimDevice dev{"test"};
|
||||
wpi::hal::SimBoolean devBool = dev.CreateBoolean("bool", false, false);
|
||||
wpi::hal::SimBoolean devBool =
|
||||
dev.CreateBoolean("bool", wpi::hal::SimDevice::Direction::INPUT, false);
|
||||
|
||||
SimDeviceSim sim{"test"};
|
||||
wpi::hal::SimBoolean simBool = sim.GetBoolean("bool");
|
||||
|
||||
Reference in New Issue
Block a user