From 9b41524cae3fc977e077e21af35fbed89172e474 Mon Sep 17 00:00:00 2001 From: Alessandro Aimi Date: Sun, 13 Oct 2024 12:30:03 +0200 Subject: [PATCH] Fix clang-tidy warnings --- helper/lorawan-mac-helper.cc | 2 +- model/class-a-end-device-lorawan-mac.cc | 2 +- model/gateway-lorawan-mac.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helper/lorawan-mac-helper.cc b/helper/lorawan-mac-helper.cc index 6a4e66deb5..1fc853a16e 100644 --- a/helper/lorawan-mac-helper.cc +++ b/helper/lorawan-mac-helper.cc @@ -489,7 +489,7 @@ LorawanMacHelper::SetSpreadingFactorsUp(NodeContainer endDevices, // Get the end device sensitivity Ptr edPhy = loraNetDevice->GetPhy()->GetObject(); - const double* edSensitivity = edPhy->sensitivity; + const double* edSensitivity = EndDeviceLoraPhy::sensitivity; if (rxPower > *edSensitivity) { diff --git a/model/class-a-end-device-lorawan-mac.cc b/model/class-a-end-device-lorawan-mac.cc index c26f72055b..41f9cfed2c 100644 --- a/model/class-a-end-device-lorawan-mac.cc +++ b/model/class-a-end-device-lorawan-mac.cc @@ -104,7 +104,7 @@ ClassAEndDeviceLorawanMac::SendToPhy(Ptr packetToSend) ////////////////////////////////////////////// // Compute packet duration - Time duration = m_phy->GetOnAirTime(packetToSend, params); + Time duration = LoraPhy::GetOnAirTime(packetToSend, params); // Register the sent packet into the DutyCycleHelper m_channelHelper.AddEvent(duration, txChannel); diff --git a/model/gateway-lorawan-mac.cc b/model/gateway-lorawan-mac.cc index 33d5aa7cea..6ada4b0ce9 100644 --- a/model/gateway-lorawan-mac.cc +++ b/model/gateway-lorawan-mac.cc @@ -77,7 +77,7 @@ GatewayLorawanMac::Send(Ptr packet) params.lowDataRateOptimizationEnabled = LoraPhy::GetTSym(params) > MilliSeconds(16); // Get the duration - Time duration = m_phy->GetOnAirTime(packet, params); + Time duration = LoraPhy::GetOnAirTime(packet, params); NS_LOG_DEBUG("Duration: " << duration.GetSeconds());