[hal] Simulation: Fix REV PH solenoids 8+ (#5132)

This commit is contained in:
superpenguin612
2023-02-23 23:10:44 -05:00
committed by GitHub
parent bb7053d9ee
commit cbb5b0b802

View File

@@ -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);
}