From 4cb1007062de0316a6afc58be37d02d50d0191b6 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 11 May 2023 10:59:30 +0200 Subject: [PATCH] Indention fixed. --- firmware/html/bottom.js | 1 + firmware/timing_control.ino | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/firmware/html/bottom.js b/firmware/html/bottom.js index 502b416..20deffc 100644 --- a/firmware/html/bottom.js +++ b/firmware/html/bottom.js @@ -329,6 +329,7 @@ function updateLightState() { briSlider.value = data.bri; briSliderVal.innerHTML = (Math.round((data.bri * 100.0 / 255.0) * 100) / 100).toFixed(2); //console.log('data.on ' + i + ' = ' + data.on); + //console.log('data light ' + i + ' = ' + data); if (data.on == true) { onLinkOn.classList.add('pure-button-primary'); onLinkOff.classList.remove('pure-button-primary'); diff --git a/firmware/timing_control.ino b/firmware/timing_control.ino index d605dc9..67e1258 100644 --- a/firmware/timing_control.ino +++ b/firmware/timing_control.ino @@ -151,8 +151,6 @@ void tc_update_main() { //Serial.println((String)tc_data[i].hh + ":" + (String)tc_data[i].mm); - /*if (tc_data[i].hh <= timeClient.getHours() && - tc_data[i].mm <= timeClient.getMinutes())*/ if (tc_data[i].hh <= hour() && tc_data[i].mm <= minute()) { @@ -169,10 +167,10 @@ void tc_update_main() // disable the lights for (uint8_t i = 0; i < LIGHTS_COUNT; i++) { - light_state[i] = false; - bri[i] = 0; - current_bri[i] = 0; - current_pwm[i] = 0; + light_state[i] = false; + bri[i] = 0; + current_bri[i] = 0; + current_pwm[i] = 0; transitiontime[i] = 4; process_lightdata(i, transitiontime[i]); }