From a4530243e16989aedaebc60a0881989e443e7bc3 Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 9 Aug 2019 16:14:46 -0700 Subject: [PATCH] HAL sim: Fix incorrectly setting dio port to initialized on cleanup (#1813) --- hal/src/main/native/sim/DIO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/src/main/native/sim/DIO.cpp b/hal/src/main/native/sim/DIO.cpp index e67b7565ec..2104e449dc 100644 --- a/hal/src/main/native/sim/DIO.cpp +++ b/hal/src/main/native/sim/DIO.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -78,7 +78,7 @@ void HAL_FreeDIOPort(HAL_DigitalHandle dioPortHandle) { // no status, so no need to check for a proper free. digitalChannelHandles->Free(dioPortHandle, HAL_HandleEnum::DIO); if (port == nullptr) return; - SimDIOData[port->channel].initialized = true; + SimDIOData[port->channel].initialized = false; } HAL_DigitalPWMHandle HAL_AllocateDigitalPWM(int32_t* status) {