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]);
}