Skip to content

Commit

Permalink
Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
non-det-alle committed Oct 13, 2024
1 parent ad34fd9 commit 9b41524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helper/lorawan-mac-helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ LorawanMacHelper::SetSpreadingFactorsUp(NodeContainer endDevices,

// Get the end device sensitivity
Ptr<EndDeviceLoraPhy> edPhy = loraNetDevice->GetPhy()->GetObject<EndDeviceLoraPhy>();
const double* edSensitivity = edPhy->sensitivity;
const double* edSensitivity = EndDeviceLoraPhy::sensitivity;

if (rxPower > *edSensitivity)
{
Expand Down
2 changes: 1 addition & 1 deletion model/class-a-end-device-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ClassAEndDeviceLorawanMac::SendToPhy(Ptr<Packet> 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);
Expand Down
2 changes: 1 addition & 1 deletion model/gateway-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ GatewayLorawanMac::Send(Ptr<Packet> 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());

Expand Down

0 comments on commit 9b41524

Please sign in to comment.