ArmDeveloperEcosystem / lorawan-library-for-pico

Enable LoRaWAN communications on your Raspberry Pi Pico or any RP2040 based board. 📡
BSD 3-Clause "New" or "Revised" License
125 stars 47 forks source link

undefined reference to "make_timeout_time_ms" #34

Closed lingmaple closed 11 months ago

lingmaple commented 1 year ago

185b6e2835888609428d613f5499d2a please

jerryneedell commented 1 year ago

Is your copy of the library up to date? This was fixed by PR #33

This can be fixed by adding including "pico/time.h" in src/lorawan.c

diff --git a/src/lorawan.c b/src/lorawan.c
index 9e4cec3..dc24e60 100644
--- a/src/lorawan.c
+++ b/src/lorawan.c
@@ -28,6 +28,7 @@
 #include <string.h>

 #include "pico/lorawan.h"
+#include "pico/time.h"

 #include "board.h"
 #include "rtc-board.h"
sandeepmistry commented 1 year ago

@lingmaple did you get a changes to try @jerryneedell's suggestion above (https://github.com/ArmDeveloperEcosystem/lorawan-library-for-pico/issues/34#issuecomment-1494472699) ?

stale[bot] commented 12 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.