[hal] Initialize DIO to true in sim (#6670)

This commit is contained in:
Gold856
2024-05-28 00:18:19 -04:00
committed by GitHub
parent 76685fe7e8
commit 0ad4cd69d0
3 changed files with 9 additions and 8 deletions

View File

@@ -66,6 +66,7 @@ HAL_DigitalHandle HAL_InitializeDIOPort(HAL_PortHandle portHandle,
SimDIOData[channel].initialized = true;
SimDIOData[channel].isInput = input;
SimDIOData[channel].simDevice = 0;
SimDIOData[channel].value = true;
port->previousAllocation = allocationLocation ? allocationLocation : "";
return handle;