firmware: v7 — fix LED independiente del streaming
El LED ahora se enciende/apaga siempre con el boton, sin necesitar que el stream este activo (antes requeria isStreaming==true). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
// ================================================================
|
// ================================================================
|
||||||
// OTA CONFIG
|
// OTA CONFIG
|
||||||
// ================================================================
|
// ================================================================
|
||||||
#define FW_VERSION 6
|
#define FW_VERSION 7
|
||||||
#define GITEA_HOST "https://git.nacho.myds.me"
|
#define GITEA_HOST "https://git.nacho.myds.me"
|
||||||
#define GITEA_OWNER "Natxo"
|
#define GITEA_OWNER "Natxo"
|
||||||
#define GITEA_REPO "Arduino-Car"
|
#define GITEA_REPO "Arduino-Car"
|
||||||
|
|||||||
@@ -362,9 +362,7 @@ static esp_err_t cmd_handler(httpd_req_t *req) {
|
|||||||
|
|
||||||
if (!strcmp(variable, "led_intensity")) {
|
if (!strcmp(variable, "led_intensity")) {
|
||||||
led_duty = val;
|
led_duty = val;
|
||||||
if (isStreaming) {
|
enable_led(val > 0); // siempre aplica, sin depender del streaming
|
||||||
enable_led(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Lo demás se manda al otro micro por UART
|
// Lo demás se manda al otro micro por UART
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
6
|
7
|
||||||
Reference in New Issue
Block a user