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

@@ -84,7 +84,7 @@ HAL_Bool HAL_CheckAnalogModule(int32_t module) { return module == 1; }
* @return Analog channel is valid
*/
HAL_Bool HAL_CheckAnalogInputChannel(int32_t pin) {
return (pin < kNumAnalogInputs) && (pin >= 0);
return pin < kNumAnalogInputs && pin >= 0;
}
/**