Javascript cleanup
This commit is contained in:
@@ -282,8 +282,10 @@ void setup() {
|
||||
pinMode(KEY_6, INPUT_PULLUP);
|
||||
pinMode(KEY_DST, INPUT_PULLUP);
|
||||
|
||||
#ifdef HARDWARE_V2
|
||||
// Light sensor input
|
||||
pinMode(LDR, INPUT);
|
||||
#endif
|
||||
|
||||
// Early signal system activity, red while booting
|
||||
digitalWrite(RGBLED_R, HIGH);
|
||||
@@ -738,6 +740,7 @@ void loop() {
|
||||
case BUTTON_5: // reset
|
||||
LOGI(TAG, "Device reset");
|
||||
esp_rom_uart_tx_wait_idle(0);
|
||||
ledcWrite(LEDC_RGBLED_B, 0); // blue config light off
|
||||
led_blink(LEDC_RGBLED_G, 3, 4095, 500);
|
||||
ESP.restart();
|
||||
break;
|
||||
|
||||
@@ -164,6 +164,7 @@ void webserver_init() {
|
||||
String out;
|
||||
serializeJson(doc, out);
|
||||
request->send(200, "application/json", out);
|
||||
ledcWrite(LEDC_RGBLED_B, 0); // blue config light off
|
||||
led_blink(LEDC_RGBLED_G, 3, 4095, 500);
|
||||
esp_rom_uart_tx_wait_idle(0);
|
||||
ESP.restart();
|
||||
|
||||
Reference in New Issue
Block a user