sudomesh / LoRaLayer2

Layer 2 routing protocol for LoRa connected devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error with PlatformIO and LoRa32u4

Nihlus opened this issue · comments

I'm currently trying to compile the library as a part of an experiment on a LoRa32u4 board, but I'm running into trouble with the use of a printf where it is seemingly not supported. The problem in question shows up here,

Serial.printf("Layer1Class::receive(): _packetSize = %d\r\n", _packetSize);

, and wrapping it in a #ifdef LL2_DEBUG like the others around it resolves the problem.

Yes, that should definitely be wrapped in an #ifdef LL2_DEBUG. I can make the change in master, unless you feel a strong desire to make a pull request. Thanks for pointing this out.