oops - set hour hand right

SVN revision: 12284
This commit is contained in:
Carsten Haitzler 2004-11-27 16:56:09 +00:00
parent 248f0d9f20
commit a952052046
1 changed files with 1 additions and 1 deletions

View File

@ -4430,7 +4430,7 @@ collections {
if (v < 10) {snprintf(buf, 10, "0%i", v);}
else {snprintf(buf, 10, "%i", v);}
set_state(PART:"minutes", buf, 0.0);
v = hour % 12;
v = ((hour % 12) * 5) + ((minute * 5) / 60);
buf[0] = 0;
if (v < 10) {snprintf(buf, 10, "0%i", v);}
else {snprintf(buf, 10, "%i", v);}