Indention fixed.

This commit is contained in:
Kai Lauterbach 2023-05-11 10:59:30 +02:00
parent 93c9a02deb
commit 4cb1007062
2 changed files with 5 additions and 6 deletions

View file

@ -329,6 +329,7 @@ function updateLightState() {
briSlider.value = data.bri; briSlider.value = data.bri;
briSliderVal.innerHTML = (Math.round((data.bri * 100.0 / 255.0) * 100) / 100).toFixed(2); briSliderVal.innerHTML = (Math.round((data.bri * 100.0 / 255.0) * 100) / 100).toFixed(2);
//console.log('data.on ' + i + ' = ' + data.on); //console.log('data.on ' + i + ' = ' + data.on);
//console.log('data light ' + i + ' = ' + data);
if (data.on == true) { if (data.on == true) {
onLinkOn.classList.add('pure-button-primary'); onLinkOn.classList.add('pure-button-primary');
onLinkOff.classList.remove('pure-button-primary'); onLinkOff.classList.remove('pure-button-primary');

View file

@ -151,8 +151,6 @@ void tc_update_main()
{ {
//Serial.println((String)tc_data[i].hh + ":" + (String)tc_data[i].mm); //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() && if (tc_data[i].hh <= hour() &&
tc_data[i].mm <= minute()) tc_data[i].mm <= minute())
{ {