mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Makes SensorBase checks use HAL check methods (#182)
This commit is contained in:
committed by
Peter Johnson
parent
0901ae0808
commit
512ecf6490
@@ -101,7 +101,7 @@ void HAL_FreePWMPort(HAL_DigitalHandle pwm_port_handle, int32_t* status) {
|
||||
}
|
||||
|
||||
HAL_Bool HAL_CheckPWMChannel(int32_t pin) {
|
||||
return (pin < kNumPWMPins) && (pin >= 0);
|
||||
return pin < kNumPWMPins && pin >= 0;
|
||||
}
|
||||
|
||||
void HAL_SetPWMConfig(HAL_DigitalHandle pwm_port_handle, double max,
|
||||
|
||||
Reference in New Issue
Block a user