File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
features/lorawan/lorastack Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ void LoRaMac::on_radio_tx_done(lorawan_time_t timestamp)
666
666
_params.timers .aggregated_last_tx_time = timestamp;
667
667
}
668
668
669
- void LoRaMac::on_radio_rx_done (const uint8_t * const payload, uint16_t size,
669
+ void LoRaMac::on_radio_rx_done (const uint8_t * const payload, uint16_t size,
670
670
int16_t rssi, int8_t snr)
671
671
{
672
672
if (_device_class == CLASS_C && !_continuous_rx2_window_open) {
Original file line number Diff line number Diff line change @@ -1034,6 +1034,10 @@ uint8_t LoRaPHY::accept_rx_param_setup_req(rx_param_setup_req_t* params)
1034
1034
{
1035
1035
uint8_t status = 0x07 ;
1036
1036
1037
+ if (lookup_band_for_frequency (params->frequency ) < 0 ) {
1038
+ status &= 0xFE ;
1039
+ }
1040
+
1037
1041
// Verify radio frequency
1038
1042
if (_radio->check_rf_frequency (params->frequency ) == false ) {
1039
1043
status &= 0xFE ; // Channel frequency KO
You can’t perform that action at this time.
0 commit comments