Skip to content

Commit 44bc8db

Browse files
committed
Fixed comparison between uint32 and int32
JIRA: ATLEDGE-457 Servo.cpp warning
1 parent 51c7f7d commit 44bc8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Servo/Servo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void timer1_isr_servo(void)
7272

7373
Channel++; // increment to the next channel
7474

75-
if(Channel < ServoCount) {
75+
if(Channel < (int32_t)ServoCount) {
7676
total_count += servos[Channel].ticks;
7777
timer1_init_servo(servos[Channel].ticks);
7878
if (servos[Channel].Pin.isActive == true) {

0 commit comments

Comments
 (0)