mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Cleaned up integer type usage in the HAL (#192)
Replaced all uses of built-in types except char with stdint.h typedefs and all unsigned types with signed in the HAL
This commit is contained in:
committed by
Peter Johnson
parent
0cd05d1a42
commit
2c94d0ba2f
@@ -172,7 +172,7 @@ void Encoder::SetReverseDirection(bool reverseDirection, int32_t* status) {
|
||||
}
|
||||
}
|
||||
|
||||
void Encoder::SetSamplesToAverage(int samplesToAverage, int32_t* status) {
|
||||
void Encoder::SetSamplesToAverage(int32_t samplesToAverage, int32_t* status) {
|
||||
if (samplesToAverage < 1 || samplesToAverage > 127) {
|
||||
*status = PARAMETER_OUT_OF_RANGE;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user