From dae4a527be96eab62a0600f73f27aa098e70d900 Mon Sep 17 00:00:00 2001 From: Sandro Zimmermann Date: Sat, 6 Dec 2025 15:01:50 +0100 Subject: [PATCH] simplify command --- py/speech_coltrol_led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/speech_coltrol_led.py b/py/speech_coltrol_led.py index 3aac45e..e410319 100644 --- a/py/speech_coltrol_led.py +++ b/py/speech_coltrol_led.py @@ -9,7 +9,7 @@ GPIO.setmode(GPIO.BCM) GPIO.setup(LED_PIN, GPIO.OUT) def trigger_action(command): - if "light" in command.lower(): + if "let" in command.lower(): GPIO.output(LED_PIN, GPIO.HIGH) print("Light ON") elif "dark" in command.lower():