mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-20 11:28:46 +00:00
Remove duplicate code.
This is already handled by the filter_mac_commands function.
This commit is contained in:
parent
8a4b537645
commit
97a235cc80
@ -823,17 +823,6 @@ impl Data {
|
||||
async fn _request_channel_mask_reconfiguration(&mut self) -> Result<()> {
|
||||
trace!("Requesting channel-mask reconfiguration");
|
||||
|
||||
// The channel-mask reconfiguration (using LinkADRReq) is incompatible with the
|
||||
// NewChannelReq.
|
||||
for set in &self.mac_commands {
|
||||
for mac in &**set {
|
||||
if let lrwn::MACCommand::NewChannelReq(_) = &mac {
|
||||
trace!("Skipping channel-mask reconfiguration due to pending NewChannelReq");
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let enabled_uplink_channel_indices: Vec<usize> = self
|
||||
.device_session
|
||||
.enabled_uplink_channel_indices
|
||||
|
Loading…
Reference in New Issue
Block a user