[ 
https://issues.apache.org/jira/browse/MYNEWT-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300365#comment-16300365
 ] 

ASF GitHub Bot commented on MYNEWT-878:
---------------------------------------

wes3 closed pull request #712: MYNEWT-878
URL: https://github.com/apache/mynewt-core/pull/712
 
 
   

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/mac/LoRaMac.c b/net/lora/node/src/mac/LoRaMac.c
index fc1147094..98ad45690 100644
--- a/net/lora/node/src/mac/LoRaMac.c
+++ b/net/lora/node/src/mac/LoRaMac.c
@@ -2372,7 +2372,9 @@ static bool ValidateDatarate( int8_t datarate, uint16_t* 
channelsMask )
 static int8_t
 LimitTxPower( int8_t txPower, int8_t maxBandTxPower )
 {
+#if defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID )
     int8_t dr;
+#endif
     int8_t resultTxPower;
 
     // Limit tx power to the band max


 

----------------------------------------------------------------
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]


> Compiler error (unused variable) for lora code when building for 868 MHz
> ------------------------------------------------------------------------
>
>                 Key: MYNEWT-878
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-878
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: Misc
>    Affects Versions: v1_3_0_rel
>            Reporter: William San Filippo
>            Assignee: William San Filippo
>
> Automated build needs to build regions other than US. This error was missed. 
> Just an unused variable when building for EU regions (868 MHz define).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to