remove debug code
This commit is contained in:
parent
8f8a086eee
commit
61dfe244b7
3
main.c
3
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
|
* @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
|
#define TICKS_PER_SECOND 256
|
||||||
/** number of ticks in one second */
|
/** number of ticks in one second */
|
||||||
const uint32_t ticks_second = TICKS_PER_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
|
adc_start_conversion_regular(ADC1); // start measuring ambient luminosity
|
||||||
}
|
}
|
||||||
if ((rtc_get_counter_val()%ticks_second)==0) { // one second passed
|
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
|
led_toggle(); // LED activity to show we are not stuck
|
||||||
}
|
}
|
||||||
if ((rtc_get_counter_val()%ticks_minute)==0) { // one minute passed
|
if ((rtc_get_counter_val()%ticks_minute)==0) { // one minute passed
|
||||||
|
|
Loading…
Reference in New Issue