From c79676d8f6153c0f4fead8e92e586ca4e12f330a Mon Sep 17 00:00:00 2001 From: Francesco Zardi Date: Wed, 26 Sep 2018 08:26:45 +0200 Subject: [PATCH] Set the correct value for margin --- src/lmic/lmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmic/lmic.c b/src/lmic/lmic.c index 9c69f1c4..c6c0a867 100644 --- a/src/lmic/lmic.c +++ b/src/lmic/lmic.c @@ -1263,7 +1263,7 @@ static void buildDataFrame (void) { if( LMIC.devsAns ) { // answer to device status LMIC.frame[end+0] = MCMD_DEVS_ANS; LMIC.frame[end+1] = os_getBattLevel(); - LMIC.frame[end+2] = LMIC.margin; + LMIC.frame[end+2] = LMIC.devAnsMargin; end += 3; LMIC.devsAns = 0; }