Makes SensorBase checks use HAL check methods (#182)

This commit is contained in:
Thad House
2016-07-20 22:47:29 -07:00
committed by Peter Johnson
parent 0901ae0808
commit 512ecf6490
24 changed files with 238 additions and 103 deletions

View File

@@ -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,