diff options
author | root <root@artemis.panaceas.org> | 2021-11-29 12:40:33 +0000 |
---|---|---|
committer | root <root@artemis.panaceas.org> | 2021-11-29 12:40:33 +0000 |
commit | 440039cb23f786573940ec1eafa665f9de561eae (patch) | |
tree | 214d717d424dbf4df8e336d3136def3718ea0c1d /stm32/app/hands.c | |
parent | 2d4ca4ab5080ee588f57fed1420cdd146a6a1d07 (diff) | |
download | metric_clock-440039cb23f786573940ec1eafa665f9de561eae.tar.gz metric_clock-440039cb23f786573940ec1eafa665f9de561eae.tar.bz2 metric_clock-440039cb23f786573940ec1eafa665f9de561eae.zip |
fish
Diffstat (limited to 'stm32/app/hands.c')
-rw-r--r-- | stm32/app/hands.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stm32/app/hands.c b/stm32/app/hands.c index 8261b1b..f1543ac 100644 --- a/stm32/app/hands.c +++ b/stm32/app/hands.c @@ -88,6 +88,7 @@ void hands_tick (void) m = time_to_metric (e, u); +#if 0 hands_pos[0] = calc_hour_pos (&m); if ((e.s & 31) <5) { @@ -95,10 +96,16 @@ if ((e.s & 31) <5) { } else { hands_pos[1] = calc_minute_pos (&m); } +#endif + + hands_pos[0] = calc_second_pos (&m); + hands_pos[1] = calc_minute_pos (&m); + //hands_pos[1] = calc_second_pos (&m); hands_ready = 1; +#if 0 for (i = 0, p = 0; i < HANDS; ++i) { if (hands_pos[i] != old_pos[i]) p++; @@ -112,5 +119,6 @@ if ((e.s & 31) <5) { time_print_metric ("Metric: ", &m, NULL); printf ("Hands: hour %4d/%4d min %4d/%4d\r\n", hands_pos[0], MOTOR_STEPS, hands_pos[1], MOTOR_STEPS); } +#endif } |