diff --git a/tests/driver_servo/main.c b/tests/driver_servo/main.c index 3518ff744bed..a93d9fab44b2 100644 --- a/tests/driver_servo/main.c +++ b/tests/driver_servo/main.c @@ -53,7 +53,7 @@ static servo_t servo; int main(void) { int res; - int pos = (STEP_LOWER_BOUND + STEP_UPPER_BOUND) / 2; + unsigned int pos = (STEP_LOWER_BOUND + STEP_UPPER_BOUND) / 2; int step = STEP; puts("\nRIOT RC servo test");