Remove bandwidth * 1000 as it is already in Hz.

This fixes the missing per DR stats in the gateway dashboard.
This commit is contained in:
Orne Brocaar 2022-09-27 15:56:04 +01:00
parent 4d000b92e9
commit 091e3b0f97

View File

@ -254,7 +254,7 @@ fn per_modultation_to_per_dr(
gw::modulation::Parameters::Lora(v) => {
lrwn::region::DataRateModulation::Lora(lrwn::region::LoraDataRate {
spreading_factor: v.spreading_factor as u8,
bandwidth: v.bandwidth * 1000,
bandwidth: v.bandwidth,
})
}
gw::modulation::Parameters::Fsk(v) => {