mcci-catena / arduino-lorawan

User-friendly library for using arduino-lmic with The Things Network and other LoRaWAN® networks
MIT License
284 stars 54 forks source link

New Adafruit BSP doesn't provide Serial.dtr() on USB ports #118

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

This trick is no longer supported. We need to provide a suitable workaround.

.pio/libdeps/adafruit_feather_m0/MCCI Arduino LoRaWAN Library/src/lib/LogPrintf.cpp: In member function 'void Arduino_LoRaWAN::LogPrintf(const char*, ...)':
.pio/libdeps/adafruit_feather_m0/MCCI Arduino LoRaWAN Library/src/lib/LogPrintf.cpp:46:15: error: 'class Adafruit_USBD_CDC' has no member named 'dtr'
  if (! Serial.dtr())
               ^~~
.pio/libdeps/adafruit_feather_m0/MCCI Arduino LoRaWAN Library/src/lib/LogPrintf.cpp:58:13: error: 'class Adafruit_USBD_CDC' has no member named 'dtr'
  if (Serial.dtr()) Serial.print(buf);
             ^~~
*** [.pio/build/adafruit_feather_m0/lib448/MCCI Arduino LoRaWAN Library/lib/LogPrintf.cpp.o] Error 1
terrillmoore commented 5 years ago

This is fixed in 02134194faa745861cc7c8d2f30829f876f431b3