TheThingsNetwork / arduino-device-lib

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

Compiler directive for debug output #12

Closed n2jn closed 8 years ago

n2jn commented 8 years ago

Adding debugPrintln and debugPrint to TheThingsNetwork.h to simplify example codes. #4

n2jn commented 8 years ago

It's much more easier to define debugPrintLn and debugPrint. If we put it in the library, we would have to create a function that takes in argument every types of arguments, so void and void *. And in C, according to me, there is no generic variable that combines every type possible.

johanstokking commented 8 years ago

Yes true. Also, if they are defined in the C-files, they should not generate compiler errors.