remove debug code

This commit is contained in:
King Kévin 2016-04-15 12:05:50 +02:00
parent 8f8a086eee
commit 61dfe244b7
1 changed files with 1 additions and 2 deletions

3
main.c
View File

@ -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