From cbb5b0b802c89a77d0c6f55a08803e2c2683360a Mon Sep 17 00:00:00 2001 From: superpenguin612 <74030080+superpenguin612@users.noreply.github.com> Date: Thu, 23 Feb 2023 23:10:44 -0500 Subject: [PATCH] [hal] Simulation: Fix REV PH solenoids 8+ (#5132) --- hal/src/main/native/sim/REVPH.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/src/main/native/sim/REVPH.cpp b/hal/src/main/native/sim/REVPH.cpp index 163ca9cc3d..a9e96f1e86 100644 --- a/hal/src/main/native/sim/REVPH.cpp +++ b/hal/src/main/native/sim/REVPH.cpp @@ -201,7 +201,7 @@ int32_t HAL_GetREVPHSolenoids(HAL_REVPHHandle handle, int32_t* status) { std::scoped_lock lock{pcm->lock}; auto& data = SimREVPHData[pcm->module].solenoidOutput; - uint8_t ret = 0; + int32_t ret = 0; for (int i = 0; i < kNumREVPHChannels; i++) { ret |= (data[i] << i); }