chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

Fix minor compile warnings on SoftPWMServo library #358

Closed EmbeddedMan closed 7 years ago

EmbeddedMan commented 7 years ago

C:\Users\Brian Schmalz\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\1.4.1\libraries\SoftPWMServo\SoftPWMServo.cpp: In function 'int32_t SoftPWMServoRawWrite(uint32_t, uint32_t, bool)':

C:\Users\Brian Schmalz\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\1.4.1\libraries\SoftPWMServo\SoftPWMServo.cpp:224:9: warning: unused variable 'i' [-Wunused-variable]

 int i;

     ^

C:\Users\Brian Schmalz\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\1.4.1\libraries\SoftPWMServo\SoftPWMServo.cpp: In function 'uint32_t HandlePWMServo(uint32_t)':

C:\Users\Brian Schmalz\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\1.4.1\libraries\SoftPWMServo\SoftPWMServo.cpp:370:14: warning: unused variable 'OldPeriod' [-Wunused-variable]

 uint32_t OldPeriod;                     // The CoreTimer value that caused the ISR to fire

          ^
EmbeddedMan commented 7 years ago

Merged pull request.