mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Makes SensorBase checks use HAL check methods (#182)
This commit is contained in:
committed by
Peter Johnson
parent
0901ae0808
commit
512ecf6490
@@ -70,7 +70,7 @@ void HAL_FreeAnalogOutputPort(HAL_AnalogOutputHandle analog_output_handle) {
|
||||
* @return Analog channel is valid
|
||||
*/
|
||||
HAL_Bool HAL_CheckAnalogOutputChannel(int32_t pin) {
|
||||
return (pin < kNumAnalogOutputs) && (pin >= 0);
|
||||
return pin < kNumAnalogOutputs && pin >= 0;
|
||||
}
|
||||
|
||||
void HAL_SetAnalogOutput(HAL_AnalogOutputHandle analog_output_handle,
|
||||
|
||||
Reference in New Issue
Block a user