fix set right ticks per second (preprocessor uses wrong type)

This commit is contained in:
King Kévin 2016-04-11 10:04:00 +02:00
parent 8794f4e05d
commit ae6037e5ca
1 changed files with 0 additions and 5 deletions

5
main.c
View File

@ -455,11 +455,6 @@ int main(void)
printf("current time: %02lu:%02lu:%02lu\n", rtc_get_counter_val()/ticks_hour, (rtc_get_counter_val()%ticks_hour)/ticks_minute, (rtc_get_counter_val()%ticks_minute)/ticks_second); // display time
clock_animate_time(rtc_get_counter_val()); // set time with animation
printf("ticks/s: %lu (%d)\n",ticks_second, TICKS_PER_SECOND);
printf("RTC prescale set: %lu\n",32768/ticks_second-1);
//printf("RTC prescale get: %lu\n",rtc_get_prescale_div_val());
printf("input commands\n");
bool action = false; // if an action has been performed don't go to sleep
button_flag = false; // reset button flag