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 warnings in wiring_analog #321

Closed eric-wieser closed 7 years ago

eric-wieser commented 7 years ago

One variable had no type definition, the other was completely unused

JacobChrist commented 7 years ago

Eric,

This line looks like it was removed becuase res is a dead variable.

uint32_t res = (1 << _pwmResolution);

All these changes seem sound to me. I have not tried to test them.

Jacob

eric-wieser commented 7 years ago

Correct, res is indeed a dead variable