Compare commits

...

2 commits

Author SHA1 Message Date
Kai Lauterbach
f935948402 Fixed end of the timing data setup, all values will be set to zero. 2023-05-10 08:33:12 +02:00
Kai Lauterbach
eea9c75c21 Minutes are only set in a step of 10 2023-05-10 08:24:54 +02:00
3 changed files with 12 additions and 2 deletions

View file

@ -404,7 +404,7 @@ var tr = document.createElement("tr");
var tdHour = createSelectCell(23, 0, 1); var tdHour = createSelectCell(23, 0, 1);
tdHour.id = "hour" + i; tdHour.id = "hour" + i;
tr.appendChild(tdHour); tr.appendChild(tdHour);
var tdMinute = createSelectCell(59, 0, 1); var tdMinute = createSelectCell(59, 0, 10);
tdMinute.id = "minute" + i; tdMinute.id = "minute" + i;
tr.appendChild(tdMinute); tr.appendChild(tdMinute);
for (var j = 1; j <=4; j++) for (var j = 1; j <=4; j++)

View file

@ -479,7 +479,7 @@ function createTable() {
tr.appendChild(tdHour); tr.appendChild(tdHour);
// Minute // Minute
var tdMinute = createSelectCell(59, 0, 1); var tdMinute = createSelectCell(59, 0, 10);
tdMinute.id = "minute" + i; tdMinute.id = "minute" + i;
tr.appendChild(tdMinute); tr.appendChild(tdMinute);

View file

@ -165,6 +165,16 @@ void tc_update_main()
{ {
// no new predecessor or successor found, start over // no new predecessor or successor found, start over
current_target_data_block = 255; current_target_data_block = 255;
// 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;
}
return; return;
} }