Skip to content

Commit

Permalink
Fix spelling error in function name. (#8737)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored Aug 2, 2021
1 parent 209de61 commit 3d8d542
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/minimal-mdns/advertiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int main(int argc, char ** args)
.EnableIpV4(gOptions.enableIpV4)
.SetPort(CHIP_PORT)
.SetShortDiscriminator(gOptions.shortDiscriminator)
.SetLongDiscrimininator(gOptions.longDiscriminator)
.SetLongDiscriminator(gOptions.longDiscriminator)
.SetMac(chip::ByteSpan(gOptions.mac, 6))
.SetVendorId(gOptions.vendorId)
.SetProductId(gOptions.productId)
Expand Down
2 changes: 1 addition & 1 deletion src/app/server/Mdns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ CHIP_ERROR Advertise(bool commissionableNode)
ChipLogError(Discovery, "Setup discriminator not known. Using a default.");
value = 840;
}
advertiseParameters.SetShortDiscriminator(static_cast<uint8_t>(value & 0xFF)).SetLongDiscrimininator(value);
advertiseParameters.SetShortDiscriminator(static_cast<uint8_t>(value & 0xFF)).SetLongDiscriminator(value);

if (DeviceLayer::ConfigurationMgr().IsCommissionableDeviceTypeEnabled() &&
DeviceLayer::ConfigurationMgr().GetDeviceType(value) == CHIP_NO_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/mdns/Advertiser.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class CommissionAdvertisingParameters : public BaseAdvertisingParams<CommissionA
}
uint8_t GetShortDiscriminator() const { return mShortDiscriminator; }

CommissionAdvertisingParameters & SetLongDiscrimininator(uint16_t discriminator)
CommissionAdvertisingParameters & SetLongDiscriminator(uint16_t discriminator)
{
mLongDiscriminator = discriminator;
return *this;
Expand Down

0 comments on commit 3d8d542

Please sign in to comment.