clearwater / SwitecX25

Arduino library for Switec X25.168 and friends
http://clearwater.github.com/gaugette/
Other
128 stars 44 forks source link

Explicitly declared char dir as signed to fix esp8266 compiler thinking it should be unsigned #14

Closed nielsmaneschijn closed 6 years ago

nielsmaneschijn commented 6 years ago

This fixed my X27's going in one direction only. My guess is that the AVR compiler interprets a char (without sign specification) as signed, whereas the ESP8266 compiler defaults to unsigned. Which would be why checking on negative values will not work. I'm not a C programmer so handle with care. :)

nielsmaneschijn commented 6 years ago

You're welcome. Thanks for making this. :)