Skip to content

Commit a2ab1e5

Browse files
authored
fix(matter): typos
1 parent 5a5c93d commit a2ab1e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

idf_component_examples/Arduino_ESP-Matter-over-Thread_ESP32-C6/main/MatterEnhancedColorLight.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
4242
// Button control
4343
uint32_t button_time_stamp = 0; // debouncing control
4444
bool button_state = false; // false = released | true = pressed
45-
const uint32_t debouceTime = 250; // button debouncing time (ms)
45+
const uint32_t debounceTime = 250; // button debouncing time (ms)
4646
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4747

4848
// Set the RGB LED Light based on the current state of the Enhanced Color Light
49-
bool setLightState(bool state, espHsvColor_t colorHSV, uint8_t brighteness, uint16_t temperature_Mireds) {
49+
bool setLightState(bool state, espHsvColor_t colorHSV, uint8_t brightness, uint16_t temperature_Mireds) {
5050

5151
if (state) {
5252
#ifdef RGB_BUILTIN
@@ -169,7 +169,7 @@ void loop() {
169169

170170
// Onboard User Button is used as a Light toggle switch or to decommission it
171171
uint32_t time_diff = millis() - button_time_stamp;
172-
if (button_state && time_diff > debouceTime && digitalRead(buttonPin) == HIGH) {
172+
if (button_state && time_diff > debounceTime && digitalRead(buttonPin) == HIGH) {
173173
button_state = false; // released
174174
// Toggle button is released - toggle the light
175175
Serial.println("User button released. Toggling Light!");

0 commit comments

Comments
 (0)