Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spell] Fix slew of spelling errors. #13043

Merged
merged 3 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/all-clusters-app/mbed/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ int main(int argc, char * argv[])
err = chip::Platform::MemoryInit();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Memory initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Memory initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}

err = PlatformMgr().InitChipStack();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Chip stack initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Chip stack initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/chip-tool/commands/common/CHIPCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class CHIPCommand : public Command
void SetIdentity(const char * name);

// This method returns the commissioner instance to be used for running the command.
// The default commissioner instance name is "alpha", but it can be overriden by passing
// The default commissioner instance name is "alpha", but it can be overridden by passing
// --identity "instance name" when running a command.
ChipDeviceCommissioner & CurrentCommissioner();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void DiscoverCommissionersCommand::Shutdown()
const Dnssd::DiscoveredNodeData * commissioner = mCommissionableNodeController.GetDiscoveredCommissioner(i);
if (commissioner != nullptr)
{
ChipLogProgress(chipTool, "Discovered Commisioner #%d", commissionerCount);
ChipLogProgress(chipTool, "Discovered Commissioner #%d", commissionerCount);
commissioner->LogDetail();
commissionerCount++;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/ipv6only-app/esp32/include/wifi_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Wifi final : public pw_rpc::nanopb::Wifi::Service<Wifi>
// Initalize the wifi station
pw::Status Init();

// Blocks the calling thread until wifi connection is completed succesfully.
// Blocks the calling thread until wifi connection is completed successfully.
// NOTE: Currently only supports blocking a single thread.
void BlockUntilWifiConnected() { xSemaphoreTake(wifi_connected_semaphore_, portMAX_DELAY); }

Expand Down
4 changes: 2 additions & 2 deletions examples/ipv6only-app/esp32/main/wifi_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ constexpr pw::containers::FlatMap<uint8_t, uint32_t, 73> kChannelToFreqMap({ {

// Class handles the event handlers needed for station startup.
// Creating the object will register all handlers needed, destroying will
// unregister. The object is only needed during initalization, after the station
// unregister. The object is only needed during initialization, after the station
// is up it is safe to destroy this object.
class WifiInitStationEventHandler
{
Expand Down Expand Up @@ -114,7 +114,7 @@ class WifiConnectionEventHandler
vEventGroupDelete(handler_context_.event_group);
}

// Waits for the events to determine if connected succesfully.
// Waits for the events to determine if connected successfully.
pw::Status WaitForConnection(chip_rpc_ConnectionResult * result)
{
EventBits_t bits = xEventGroupWaitBits(handler_context_.event_group, kWifiFailBit | kWifiIpv6ConnectedBit, pdFALSE, pdFALSE,
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/mbed/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ int main()
err = chip::Platform::MemoryInit();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Memory initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Memory initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}

err = PlatformMgr().InitChipStack();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Chip stack initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Chip stack initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/nxp/k32w/k32w0/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
import("//build_overrides/chip.gni")
import("${chip_root}/examples/platform/nxp/k32w/k32w0/args.gni")

# SDK target. This is overriden to add our SDK app_config.h & defines.
# SDK target. This is overridden to add our SDK app_config.h & defines.
k32w0_sdk_target = get_label_info(":sdk", "label_no_toolchain")
4 changes: 2 additions & 2 deletions examples/lock-app/mbed/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ int main()
err = chip::Platform::MemoryInit();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Memory initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Memory initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}

err = PlatformMgr().InitChipStack();
if (err != CHIP_NO_ERROR)
{
ChipLogError(NotSpecified, "Chip stack initalization failed: %s", err.AsString());
ChipLogError(NotSpecified, "Chip stack initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/nxp/k32w/k32w0/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
import("//build_overrides/chip.gni")
import("${chip_root}/examples/platform/nxp/k32w/k32w0/args.gni")

# SDK target. This is overriden to add our SDK app_config.h & defines.
# SDK target. This is overridden to add our SDK app_config.h & defines.
k32w0_sdk_target = get_label_info(":sdk", "label_no_toolchain")
74 changes: 37 additions & 37 deletions examples/minimal-mdns/advertiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct Options
Optional<uint16_t> deviceType;
Optional<const char *> deviceName;

// commisionable node params
// commissionable node params
uint8_t shortDiscriminator = 52;
uint16_t longDiscriminator = 840;
Dnssd::CommissioningMode commissioningMode = Dnssd::CommissioningMode::kDisabled;
Expand All @@ -68,16 +68,16 @@ using namespace chip::ArgParser;
constexpr uint16_t kOptionEnableIpV4 = '4';
constexpr uint16_t kOptionAdvertisingMode = 'm';

constexpr uint16_t kOptionCommisioningShordDiscriminator = 's';
constexpr uint16_t kOptionCommisioningLongDiscriminaotr = 'l';
constexpr uint16_t kOptionCommisioningVendorId = 0x100; // v is used by 'version'
constexpr uint16_t kOptionCommisioningProductId = 'p';
constexpr uint16_t kOptionCommisioningPairingInstr = 0x200; // Just use the long format
constexpr uint16_t kOptionCommisioningPairingHint = 0x300;
constexpr uint16_t kOptionCommisioningDeviceType = 0x400;
constexpr uint16_t kOptionCommisioningDeviceName = 0x500;
constexpr uint16_t kOptionCommisioningMode = 0x600;
constexpr uint16_t kOptionCommisioningRotatingId = 0x700;
constexpr uint16_t kOptionCommissioningShortDiscriminator = 's';
constexpr uint16_t kOptionCommissioningLongDiscriminaotr = 'l';
constexpr uint16_t kOptionCommissioningVendorId = 0x100; // v is used by 'version'
constexpr uint16_t kOptionCommissioningProductId = 'p';
constexpr uint16_t kOptionCommissioningPairingInstr = 0x200; // Just use the long format
constexpr uint16_t kOptionCommissioningPairingHint = 0x300;
constexpr uint16_t kOptionCommissioningDeviceType = 0x400;
constexpr uint16_t kOptionCommissioningDeviceName = 0x500;
constexpr uint16_t kOptionCommissioningMode = 0x600;
constexpr uint16_t kOptionCommissioningRotatingId = 0x700;

constexpr uint16_t kOptionOperationalFabricId = 'f';
constexpr uint16_t kOptionOperationalNodeId = 'n';
Expand Down Expand Up @@ -110,19 +110,19 @@ bool HandleOptions(const char * aProgram, OptionSet * aOptions, int aIdentifier,
return false;
}
return true;
case kOptionCommisioningShordDiscriminator:
case kOptionCommissioningShortDiscriminator:
gOptions.shortDiscriminator = static_cast<uint8_t>(atoi(aValue));
return true;
case kOptionCommisioningLongDiscriminaotr:
case kOptionCommissioningLongDiscriminaotr:
gOptions.longDiscriminator = static_cast<uint16_t>(atoi(aValue));
return true;
case kOptionCommisioningVendorId:
case kOptionCommissioningVendorId:
gOptions.vendorId = Optional<uint16_t>::Value(static_cast<uint16_t>(atoi(aValue)));
return true;
case kOptionCommisioningProductId:
case kOptionCommissioningProductId:
gOptions.productId = Optional<uint16_t>::Value(static_cast<uint16_t>(atoi(aValue)));
return true;
case kOptionCommisioningMode:
case kOptionCommissioningMode:
cm = static_cast<uint8_t>(atoi(aValue));
if (cm == 1)
{
Expand All @@ -133,19 +133,19 @@ bool HandleOptions(const char * aProgram, OptionSet * aOptions, int aIdentifier,
gOptions.commissioningMode = Dnssd::CommissioningMode::kEnabledEnhanced;
}
return true;
case kOptionCommisioningDeviceType:
case kOptionCommissioningDeviceType:
gOptions.deviceType = Optional<uint16_t>::Value(static_cast<uint16_t>(atoi(aValue)));
return true;
case kOptionCommisioningDeviceName:
case kOptionCommissioningDeviceName:
gOptions.deviceName = Optional<const char *>::Value(static_cast<const char *>(aValue));
return true;
case kOptionCommisioningRotatingId:
case kOptionCommissioningRotatingId:
gOptions.rotatingId = Optional<const char *>::Value(static_cast<const char *>(aValue));
return true;
case kOptionCommisioningPairingInstr:
case kOptionCommissioningPairingInstr:
gOptions.pairingInstr = Optional<const char *>::Value(static_cast<const char *>(aValue));
return true;
case kOptionCommisioningPairingHint:
case kOptionCommissioningPairingHint:
gOptions.pairingHint = Optional<uint16_t>::Value(static_cast<uint16_t>(atoi(aValue)));
return true;
case kOptionOperationalFabricId:
Expand Down Expand Up @@ -174,16 +174,16 @@ OptionDef cmdLineOptionsDef[] = {
#endif
{ "advertising-mode", kArgumentRequired, kOptionAdvertisingMode },

{ "short-discriminator", kArgumentRequired, kOptionCommisioningShordDiscriminator },
{ "long-discriminator", kArgumentRequired, kOptionCommisioningLongDiscriminaotr },
{ "vendor-id", kArgumentRequired, kOptionCommisioningVendorId },
{ "product-id", kArgumentRequired, kOptionCommisioningProductId },
{ "commissioning-mode", kNoArgument, kOptionCommisioningMode },
{ "device-type", kArgumentRequired, kOptionCommisioningDeviceType },
{ "device-name", kArgumentRequired, kOptionCommisioningDeviceName },
{ "rotating-id", kArgumentRequired, kOptionCommisioningRotatingId },
{ "pairing-instruction", kArgumentRequired, kOptionCommisioningPairingInstr },
{ "pairing-hint", kArgumentRequired, kOptionCommisioningPairingHint },
{ "short-discriminator", kArgumentRequired, kOptionCommissioningShortDiscriminator },
{ "long-discriminator", kArgumentRequired, kOptionCommissioningLongDiscriminaotr },
{ "vendor-id", kArgumentRequired, kOptionCommissioningVendorId },
{ "product-id", kArgumentRequired, kOptionCommissioningProductId },
{ "commissioning-mode", kNoArgument, kOptionCommissioningMode },
{ "device-type", kArgumentRequired, kOptionCommissioningDeviceType },
{ "device-name", kArgumentRequired, kOptionCommissioningDeviceName },
{ "rotating-id", kArgumentRequired, kOptionCommissioningRotatingId },
{ "pairing-instruction", kArgumentRequired, kOptionCommissioningPairingInstr },
{ "pairing-hint", kArgumentRequired, kOptionCommissioningPairingHint },

{ "fabric-id", kArgumentRequired, kOptionOperationalFabricId },
{ "node-id", kArgumentRequired, kOptionOperationalNodeId },
Expand All @@ -201,15 +201,15 @@ OptionSet cmdLineOptions = { HandleOptions, cmdLineOptionsDef, "PROGRAM OPTIONS"
" Advertise in this mode (operational or commissionable-node or commissioner).\n"
" --short-discriminator <value>\n"
" -s <value>\n"
" Commisioning/commisionable short discriminator.\n"
" Commissioning/commissionable short discriminator.\n"
" --long-discriminator <value>\n"
" -l <value>\n"
" Commisioning/commisionable long discriminator.\n"
" Commissioning/commissionable long discriminator.\n"
" --vendor-id <value>\n"
" Commisioning/commisionable vendor id.\n"
" Commissioning/commissionable vendor id.\n"
" --product-id <value>\n"
" -p <value>\n"
" Commisioning/commisionable product id.\n"
" Commissioning/commissionable product id.\n"
" --commissioning-mode <value>\n"
" Commissioning Mode (0=disabled, 1=basic, 2=enhanced).\n"
" --device-type <value>\n"
Expand All @@ -219,9 +219,9 @@ OptionSet cmdLineOptions = { HandleOptions, cmdLineOptionsDef, "PROGRAM OPTIONS"
" --rotating-id <value>\n"
" Rotating Id.\n"
" --pairing-instruction <value>\n"
" Commisionable pairing instruction.\n"
" Commissionable pairing instruction.\n"
" --pairing-hint <value>\n"
" Commisionable pairing hint.\n"
" Commissionable pairing hint.\n"
" --fabric-id <value>\n"
" -f <value>\n"
" Operational fabric id.\n"
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/efr32/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static uint16_t AvailableDataCount(Fifo_t * fifo)
// if equal there is no data return 0 directly
if (fifo->Tail != fifo->Head)
{
// determine if a wrap around occured to get the right data size avalaible.
// determine if a wrap around occurred to get the right data size avalaible.
size = (fifo->Tail < fifo->Head) ? (fifo->MaxSize - fifo->Head + fifo->Tail) : (fifo->Tail - fifo->Head);
}

Expand Down
4 changes: 2 additions & 2 deletions examples/shell/mbed/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ int main()
err = chip::Platform::MemoryInit();
if (err != CHIP_NO_ERROR)
{
ChipLogError(Shell, "Memory initalization failed: %s", err.AsString());
ChipLogError(Shell, "Memory initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}

err = PlatformMgr().InitChipStack();
if (err != CHIP_NO_ERROR)
{
ChipLogError(Shell, "Chip stack initalization failed: %s", err.AsString());
ChipLogError(Shell, "Chip stack initialization failed: %s", err.AsString());
ret = EXIT_FAILURE;
goto exit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public interface MediaPlaybackManager {
long getAttributes(int attributesId);

/**
* Request for cmd in REQUEST_XXX, the paramters for request is defined in REQUEST_XXX
* Request for cmd in REQUEST_XXX, the parameters for request is defined in REQUEST_XXX
*
* @param parameter The means of parameter is defined in RESPONSE_STATUS_XXX or meaningless if not
* defined.
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers/bloat_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generateBloatReport(outputFileName,
baselineDir,
buildOutputDir,
title='BLOAT REPORT'):
"""Generates a bloat report fo files betwen two diferent directories."""
"""Generates a bloat report fo files between two diferent directories."""
logging.info('Generating bloat diff report between %s and %s', baselineDir,
buildOutputDir)
with open(outputFileName, 'wt') as f:
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/linux_ip_namespace_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function help() {
echo "between a controller and device on the same linux machine."
echo ""
echo "To use this script, run the device code in a namespace using the -r command"
echo "and a controller in a seperate terminal to simulate two devices communicating"
echo "and a controller in a separate terminal to simulate two devices communicating"
echo "across a network."
echo "Example:"
echo "--------"
Expand Down
2 changes: 1 addition & 1 deletion src/app/CASEClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void CASEClient::OnSessionEstablishmentError(CHIP_ERROR error)

void CASEClient::OnSessionEstablished()
{
// On successfull CASE connection, the local session ID will be used for the derived secure session.
// On successful CASE connection, the local session ID will be used for the derived secure session.
if (mConnectionSuccessCallback)
{
mConnectionSuccessCallback(mConectionContext, this);
Expand Down
6 changes: 3 additions & 3 deletions src/app/CommandSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CommandSender final : public Messaging::ExchangeDelegate
{}

/**
* OnError will be called when an error occurr *after* a successful call to SendCommandRequest(). The following
* OnError will be called when an error occur *after* a successful call to SendCommandRequest(). The following
* errors will be delivered through this call in the aError field:
*
* - CHIP_ERROR_TIMEOUT: A response was not received within the expected response timeout.
Expand All @@ -117,7 +117,7 @@ class CommandSender final : public Messaging::ExchangeDelegate
virtual void OnError(const CommandSender * apCommandSender, const StatusIB & aStatusIB, CHIP_ERROR aError) {}

/**
* OnDone will be called when CommandSender has finished all work and is safe to destory and free the
* OnDone will be called when CommandSender has finished all work and is safe to destroy and free the
* allocated CommandSender object.
*
* This function will:
Expand Down Expand Up @@ -202,7 +202,7 @@ class CommandSender final : public Messaging::ExchangeDelegate
// Upon successful return from this call, all subsequent errors that occur during this interaction
// will be conveyed through the OnError callback above. In addition, upon completion of work regardless of
// whether it was successful or not, the OnDone callback will be invoked to indicate completion of work on this
// object and to indicate to the application that it can destory and free this object.
// object and to indicate to the application that it can destroy and free this object.
//
// Applications can, however, destroy this object at any time after this call, except while handling
// an OnResponse or OnError callback, and it will safely clean-up.
Expand Down
2 changes: 1 addition & 1 deletion src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* @file
* This file defines objects for a CHIP Interaction Data model Engine which handle unsolicitied IM message, and
* This file defines objects for a CHIP Interaction Data model Engine which handle unsolicited IM message, and
* manage different kinds of IM client and handlers.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/InteractionModelEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* @file
* This file defines objects for a CHIP Interaction Data model Engine which handle unsolicitied IM message, and
* This file defines objects for a CHIP Interaction Data model Engine which handle unsolicited IM message, and
* manage different kinds of IM client and handlers.
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ uint8_t ColorControlServer::addHue(uint8_t hue1, uint8_t hue2)
}

/**
* @brief Return difference betwen two hues.
* @brief Return difference between two hues.
*
* @param hue1
* @param hue2
Expand Down Expand Up @@ -2065,7 +2065,7 @@ void ColorControlServer::startUpColorTempCommand(EndpointId endpoint)
// the StartUpColorTemperatureMireds attribute are listed in the table below.
// Value Action on power up
// 0x0000-0xffef Set the ColorTemperatureMireds attribute to this value.
// 0xffff Set the ColorTemperatureMireds attribue to its previous value.
// 0xffff Set the ColorTemperatureMireds attribute to its previous value.

// Initialize startUpColorTempMireds to "maintain previous value" value 0xFFFF
uint16_t startUpColorTemp = 0xFFFF;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class ColorControlServer
#endif // EMBER_AF_PLUGIN_COLOR_CONTROL_SERVER_TEMP

/**********************************************************
* Attributes Decleration
* Attributes Declaration
*********************************************************/
static ColorControlServer instance;

Expand Down
Loading