Skip to content

Commit

Permalink
[hal] Simulation: Fix REV PH solenoids 8+ (wpilibsuite#5132)
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 authored and Starlight220 committed Mar 2, 2023
1 parent c458d92 commit d79500f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/main/native/sim/REVPH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d79500f

Please sign in to comment.