TobleMiner / lmic-esp-idf

A good port of the LMIC LoRaWAN library to esp-idf
42 stars 15 forks source link

waitUntil seems always behind. #5

Open dlux95 opened 4 years ago

dlux95 commented 4 years ago

I added some more information into the hal_waitUntil function to report the time and actual time. it seems like the clock is always behind when getting called.

␛[0;32mI (9530) lmic: Done waiting until 458283, current 458592, delta -309␛[0m
␛[0;32mI (10580) lmic: Done waiting until 510662, current 511091, delta -428␛[0m
␛[0;32mI (60600) lorawan: Packet queued␛[0m
␛[0;32mI (77450) lmic: Done waiting until 3854283, current 3854591, delta -308␛[0m
␛[0;32mI (78500) lmic: Done waiting until 3906662, current 3907090, delta -428␛[0m
␛[0;32mI (120600) lorawan: Packet queued␛[0m
␛[0;32mI (152350) lmic: Done waiting until 7598858, current 7599591, delta -733␛[0m
␛[0;32mI (153390) lmic: Done waiting until 7651162, current 7651590, delta -428␛[0m
␛[0;32mI (180600) lorawan: Packet queued␛[0m
␛[0;32mI (240600) lorawan: Packet queued␛[0m
␛[0;32mI (280760) lmic: Done waiting until 14019358, current 14020091, delta -733␛[0m
␛[0;32mI (281800) lmic: Done waiting until 14071662, current 14072090, delta -428␛[0m
␛[0;32mI (300600) lorawan: Packet queued␛[0m
␛[0;32mI (360600) lorawan: Packet queued␛[0m
␛[0;32mI (420600) lorawan: Packet queued␛[0m
␛[0;32mI (427750) lmic: Done waiting until 21369011, current 21369591, delta -580␛[0m
␛[0;32mI (428790) lmic: Done waiting until 21421162, current 21421590, delta -428␛[0m