diff --git a/main.c b/main.c index ae87bca..612d8f3 100644 --- a/main.c +++ b/main.c @@ -57,7 +57,7 @@ volatile bool photoresistor_flag = false; /**< flag set when ambient luminosity * @note I have to use type variables because defines would be stored in signed integers, leading to an overflow it later calculations * @{ */ -/** the number of ticks in one second (a powe or 2 > 256*WS2812B_LEDS/60) */ +/** the number of ticks in one second (a divisor of 32768 greater than 256*WS2812B_LEDS/60) */ #define TICKS_PER_SECOND 256 /** number of ticks in one second */ const uint32_t ticks_second = TICKS_PER_SECOND; @@ -504,7 +504,6 @@ int main(void) adc_start_conversion_regular(ADC1); // start measuring ambient luminosity } if ((rtc_get_counter_val()%ticks_second)==0) { // one second passed - printf("tick: %lu\n", rtc_get_counter_val()); led_toggle(); // LED activity to show we are not stuck } if ((rtc_get_counter_val()%ticks_minute)==0) { // one minute passed