mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[hal] Rename SimDevice constants to all caps
Also use enum class for SimDevice C++ wrapper.
This commit is contained in:
@@ -133,13 +133,13 @@ void HALSimWSProviderSimDevice::OnValueCreated(const char* name,
|
||||
const char* prefix = "";
|
||||
if (name[0] != '<' && name[0] != '>') {
|
||||
switch (direction) {
|
||||
case HAL_SimValueInput:
|
||||
case HAL_SIM_VALUE_INPUT:
|
||||
prefix = ">";
|
||||
break;
|
||||
case HAL_SimValueOutput:
|
||||
case HAL_SIM_VALUE_OUTPUT:
|
||||
prefix = "<";
|
||||
break;
|
||||
case HAL_SimValueBidir:
|
||||
case HAL_SIM_VALUE_BIDIR:
|
||||
prefix = "<>";
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user