summaryrefslogtreecommitdiff
path: root/lora_pkt_fwd
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2020-04-09 13:41:17 -0500
committerJason Reiss <jreiss@multitech.com>2020-04-09 13:41:17 -0500
commitf492b77b7fcb46ca504e629661b2b5fb3d9f1ef3 (patch)
tree2f33df14478d6cc44a90a22652dd4e8cf8eadc00 /lora_pkt_fwd
parent9db21b62013420e1a491a1aa5d7103491ee8b5dd (diff)
downloadpacket_forwarder_mtac_full-f492b77b7fcb46ca504e629661b2b5fb3d9f1ef3.tar.gz
packet_forwarder_mtac_full-f492b77b7fcb46ca504e629661b2b5fb3d9f1ef3.tar.bz2
packet_forwarder_mtac_full-f492b77b7fcb46ca504e629661b2b5fb3d9f1ef3.zip
add time-on-air check before transmitting4.0.1-mts-5
Diffstat (limited to 'lora_pkt_fwd')
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c
index cb467bc..fa26a6e 100644
--- a/lora_pkt_fwd/src/lora_pkt_fwd.c
+++ b/lora_pkt_fwd/src/lora_pkt_fwd.c
@@ -3129,7 +3129,7 @@ void thread_jit(void) {
}
if (duty_cycle_enabled) {
- time_on_air = (uint32_t)lgw_time_on_air(packet); /* in ms */
+ time_on_air = (uint32_t)lgw_time_on_air(&pkt); /* in ms */
if (duty_cycle_time_avail >= time_on_air) {
duty_cycle_time_avail -= time_on_air;