TheThingsNetwork / arduino-device-lib

Arduino Library for TTN Devices
MIT License
206 stars 96 forks source link

Library doesn't work on a Teensy 3.2 + ARM processors #254

Closed ZaneL closed 5 years ago

ZaneL commented 5 years ago

Couldn't find anything about this, so I figured I'd post it here even though I solved the issue.

I tried using the library with a RN2903 and a Teensy 3.2 and I couldn't get it to work because all of the strings were corrupted and creating some other bizarre memory issues. I stripped out all of the AVR related PROGMEM statements and replaced the related functions like P_strcpy with their normal variants (strcpy) and the library works fine.

Here is the modified code if anyone needs it:

https://pastebin.com/gBdHCAMJ

ZaneL commented 5 years ago

Solved -- see above.