Skip to content

Commit 5afafdf

Browse files
authored
fix(matter): commentaries and messages related to factory reset (#10988)
* fix(matter): commentaries and messages related to the factory reset * fix(matter): commentaries and messages typo
1 parent 646785e commit 5afafdf

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

libraries/Matter/examples/MatterComposedLights/MatterComposedLights.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void loop() {
128128
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
129129
uint32_t time_diff = millis() - button_time_stamp;
130130
if (button_state && time_diff > decommissioningTimeout) {
131-
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
131+
Serial.println("Decommissioning the Composed Light Matter Accessory. It shall be commissioned again.");
132132
Matter.decommission();
133133
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
134134
}

libraries/Matter/examples/MatterContactSensor/MatterContactSensor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void loop() {
140140

141141
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
142142
if (button_state && time_diff > decommissioningTimeout) {
143-
Serial.println("Decommissioning the Generic Switch Matter Accessory. It shall be commissioned again.");
143+
Serial.println("Decommissioning Contact Sensor Matter Accessory. It shall be commissioned again.");
144144
Matter.decommission();
145145
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
146146
}

libraries/Matter/examples/MatterFan/MatterFan.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void loop() {
180180

181181
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
182182
if (button_state && time_diff > decommissioningTimeout) {
183-
Serial.println("Decommissioning the Generic Switch Matter Accessory. It shall be commissioned again.");
183+
Serial.println("Decommissioning Fan Matter Accessory. It shall be commissioned again.");
184184
Matter.decommission();
185185
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
186186
}

libraries/Matter/examples/MatterHumiditySensor/MatterHumiditySensor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void loop() {
122122
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
123123
uint32_t time_diff = millis() - button_time_stamp;
124124
if (button_state && time_diff > decommissioningTimeout) {
125-
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
125+
Serial.println("Decommissioning Humidity Sensor Matter Accessory. It shall be commissioned again.");
126126
Matter.decommission();
127127
}
128128

libraries/Matter/examples/MatterOccupancySensor/MatterOccupancySensor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void loop() {
116116
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
117117
uint32_t time_diff = millis() - button_time_stamp;
118118
if (button_state && time_diff > decommissioningTimeout) {
119-
Serial.println("Decommissioning the Generic Switch Matter Accessory. It shall be commissioned again.");
119+
Serial.println("Decommissioning Occupancy Sensor Matter Accessory. It shall be commissioned again.");
120120
Matter.decommission();
121121
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
122122
}

libraries/Matter/examples/MatterPressureSensor/MatterPressureSensor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ void loop() {
122122
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
123123
uint32_t time_diff = millis() - button_time_stamp;
124124
if (button_state && time_diff > decommissioningTimeout) {
125-
// Factory reset is triggered if the button is pressed longer than 10 seconds
126-
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
125+
// Factory reset is triggered if the button is pressed longer than 5 seconds
126+
Serial.println("Decommissioning Pressure Sensor Matter Accessory. It shall be commissioned again.");
127127
Matter.decommission();
128128
}
129129

libraries/Matter/examples/MatterTemperatureSensor/MatterTemperatureSensor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void loop() {
122122
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
123123
uint32_t time_diff = millis() - button_time_stamp;
124124
if (button_state && time_diff > decommissioningTimeout) {
125-
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
125+
Serial.println("Decommissioning Temperature Sensor Matter Accessory. It shall be commissioned again.");
126126
Matter.decommission();
127127
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
128128
}

libraries/Matter/examples/MatterThermostat/MatterThermostat.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void loop() {
234234
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
235235
uint32_t time_diff = millis() - button_time_stamp;
236236
if (button_state && time_diff > decommissioningTimeout) {
237-
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
237+
Serial.println("Decommissioning Thermostat Matter Accessory. It shall be commissioned again.");
238238
Matter.decommission();
239239
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
240240
}

0 commit comments

Comments
 (0)