File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
features/lorawan/lorastack/phy Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,8 @@ bool LoRaPHYAU915::rx_config(rx_config_params_t *params)
355
355
// Apply window 1 frequency
356
356
frequency = AU915_FIRST_RX1_CHANNEL
357
357
+ (params->channel % 8 ) * AU915_STEPWIDTH_RX1_CHANNEL;
358
+ // Caller may print the frequency to log so update it to match actual frequency
359
+ params->frequency = frequency;
358
360
}
359
361
360
362
// Read the physical datarate from the datarates table
Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ bool LoRaPHYCN470::rx_config(rx_config_params_t *config)
377
377
if (config->rx_slot == RX_SLOT_WIN_1) {
378
378
// Apply window 1 frequency
379
379
frequency = CN470_FIRST_RX1_CHANNEL + (config->channel % 48 ) * CN470_STEPWIDTH_RX1_CHANNEL;
380
+ // Caller may print the frequency to log so update it to match actual frequency
381
+ config->frequency = frequency;
380
382
}
381
383
382
384
// Read the physical datarate from the datarates table
Original file line number Diff line number Diff line change @@ -374,6 +374,8 @@ bool LoRaPHYUS915::rx_config(rx_config_params_t *config)
374
374
if (config->rx_slot == RX_SLOT_WIN_1) {
375
375
// Apply window 1 frequency
376
376
frequency = US915_FIRST_RX1_CHANNEL + (config->channel % 8 ) * US915_STEPWIDTH_RX1_CHANNEL;
377
+ // Caller may print the frequency to log so update it to match actual frequency
378
+ config->frequency = frequency;
377
379
}
378
380
379
381
// Read the physical datarate from the datarates table
You can’t perform that action at this time.
0 commit comments