date(year, month, day, yearday, weekday, hour, minute, second);
dosec = get_int(do_seconds);
if (dosec) {
- v = round(second);
+ v = round(second, FLOOR);
+ v = v % 60;
tim = timer(1.0 - (second - v), "clock_cb", 1);
// set seconds to v
valset("s0", v / 10);
date(year, month, day, yearday, weekday, hour, minute, second);
dosec = get_int(do_seconds);
if (dosec) {
- v = round(second);
+ v = round(second, FLOOR);
tim = timer(1.0 - (second - v), "clock_cb", 1);
custom_state(PART:"seconds", "default", 0.0);
#endif
dosec = get_int(do_seconds);
if (dosec) {
- v = round(second);
+ v = round(second, FLOOR);
tim = timer(1.0 - (second - v), "clock_cb", 1);
// set seconds to v
valset("s0", v / 10);
#endif
dosec = get_int(do_seconds);
if (dosec) {
- v = round(second);
+ v = round(second, FLOOR);
tim = timer(1.0 - (second - v), "clock_cb", 1);
custom_state(PART:"seconds", "default", 0.0);