Skip to content

Commit dadf2c2

Browse files
committed
fix(matter): ci codespell fixes to commentaties
1 parent 0fd4cce commit dadf2c2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libraries/Matter/examples/MatterFan/MatterFan.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ void setup() {
9090
Fan.begin(0, MatterFan::FAN_MODE_OFF, MatterFan::FAN_MODE_SEQ_OFF_HIGH);
9191

9292
// callback functions would control Fan motor
93-
// the Matter Controller will send new data whenver the User APP or Automation request
93+
// the Matter Controller will send new data whenever the User APP or Automation request
9494

9595
// single feature callbacks take place before the generic (all features) callback
9696
// This callback will be executed whenever the speed percent matter attribute is updated
9797
Fan.onChangeSpeedPercent([](uint8_t speedPercent) {
9898
// setting speed to Zero, while the Fan is ON, shall turn the Fan OFF
9999
if (speedPercent == MatterFan::OFF_SPEED && Fan.getMode() != MatterFan::FAN_MODE_OFF) {
100-
// ATTR_SET do not update the attribute, just SET it to avoid inifinite loop
100+
// ATTR_SET do not update the attribute, just SET it to avoid infinite loop
101101
return Fan.setOnOff(false, Fan.ATTR_SET);
102102
}
103103
// changing the speed to higher than Zero, while the Fan is OFF, shall turn the Fan ON
104104
if (speedPercent > MatterFan::OFF_SPEED && Fan.getMode() == MatterFan::FAN_MODE_OFF) {
105-
// ATTR_SET do not update the attribute, just SET it to avoid inifinite loop
105+
// ATTR_SET do not update the attribute, just SET it to avoid infinite loop
106106
return Fan.setOnOff(true, Fan.ATTR_SET);
107107
}
108108
// for other case, just return true
@@ -115,7 +115,7 @@ void setup() {
115115
// when the Fan is turned ON using Mode Selection, while it is OFF, shall start it by setting the speed to 50%
116116
if (Fan.getSpeedPercent() == MatterFan::OFF_SPEED && fanMode != MatterFan::FAN_MODE_OFF) {
117117
Serial.printf("Fan set to %s mode -- speed percentage will go to 50%%\r\n", Fan.getFanModeString(fanMode));
118-
// ATTR_SET do not update the attribute, just SET it to avoid inifinite loop
118+
// ATTR_SET do not update the attribute, just SET it to avoid infinite loop
119119
return Fan.setSpeedPercent(50, Fan.ATTR_SET);
120120
}
121121
return true;

libraries/Matter/src/MatterEndPoint.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MatterEndPoint {
6868
return false;
6969
}
7070
if (attribute::get_val(attribute, attrVal) == ESP_OK) {
71-
log_v("GET_VAL Suceess for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
71+
log_v("GET_VAL Success for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
7272
return true;
7373
}
7474
log_e("GET_VAL FAILED! for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
@@ -82,7 +82,7 @@ class MatterEndPoint {
8282
return false;
8383
}
8484
if (attribute::set_val(attribute, attrVal) == ESP_OK) {
85-
log_v("SET_VAL Suceess for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
85+
log_v("SET_VAL Success for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
8686
return true;
8787
}
8888
log_e("SET_VAL FAILED! for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
@@ -92,7 +92,7 @@ class MatterEndPoint {
9292
// update the value of an attribute from its cluster id and attribute it
9393
bool updateAttributeVal(uint32_t cluster_id, uint32_t attribute_id, esp_matter_attr_val_t *attrVal) {
9494
if (attribute::update(endpoint_id, cluster_id, attribute_id, attrVal) == ESP_OK) {
95-
log_v("Update Suceess for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
95+
log_v("Update Success for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);
9696
return true;
9797
}
9898
log_e("Update FAILED! for cluster %d, attribute %d with value %d", cluster_id, attribute_id, attrVal->val.u32);

libraries/Matter/src/MatterEndpoints/MatterFan.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool MatterFan::begin(uint8_t percent, FanMode_t fanMode, FanModeSequence_t fanM
9696
endpoint_t *endpoint = fan::create(node::get(), &fan_config, ENDPOINT_FLAG_NONE, (void *)this);
9797

9898
if (endpoint == nullptr) {
99-
log_e("Failed to create Generic swtich endpoint");
99+
log_e("Failed to create Fan endpoint");
100100
return false;
101101
}
102102

@@ -152,7 +152,7 @@ bool MatterFan::setMode(FanMode_t newMode, bool performUpdate) {
152152
return true;
153153
}
154154

155-
// this function will change the Fan Speed by callin the user application callback
155+
// this function will change the Fan Speed by calling the user application callback
156156
// it is up to the application to decide to turn on, off or change the speed of the fan
157157
bool MatterFan::setSpeedPercent(uint8_t newPercent, bool performUpdate) {
158158
if (!started) {

0 commit comments

Comments
 (0)