wes3 closed pull request #1089: net/lora: Add downlink counter to rx debug log
URL: https://github.com/apache/mynewt-core/pull/1089
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/net/lora/node/src/lora_cli.c b/net/lora/node/src/lora_cli.c
index aa193dae47..75d2a3170a 100644
--- a/net/lora/node/src/lora_cli.c
+++ b/net/lora/node/src/lora_cli.c
@@ -646,8 +646,9 @@ lora_cli_log_cmd(int argc, char **argv)
g_lnd_log[i].lnd_p32);
break;
case LORA_NODE_LOG_RX_PORT:
- console_printf("RX_PORT port=%u len=%u",
- g_lnd_log[i].lnd_p8, g_lnd_log[i].lnd_p16);
+ console_printf("RX_PORT port=%u len=%u dwnlink_cntr=%lu",
+ g_lnd_log[i].lnd_p8, g_lnd_log[i].lnd_p16,
+ g_lnd_log[i].lnd_p32);
break;
case LORA_NODE_LOG_RX_WIN2:
console_printf("RX_WIN2 rxslot=%u cont=%u freq=%lu",
diff --git a/net/lora/node/src/mac/LoRaMac.c b/net/lora/node/src/mac/LoRaMac.c
index d2e32533a5..7c74ff1e11 100644
--- a/net/lora/node/src/mac/LoRaMac.c
+++ b/net/lora/node/src/mac/LoRaMac.c
@@ -1130,7 +1130,8 @@ lora_mac_process_radio_rx(struct os_event *ev)
rxi->port = port;
- lora_node_log(LORA_NODE_LOG_RX_PORT, port, frameLen, 0);
+ lora_node_log(LORA_NODE_LOG_RX_PORT, port, frameLen,
+ downLinkCounter);
/* If port is 0 it means frame has MAC commands in payload */
if (port == 0) {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services