parent
f24160281a
commit
7dc7d1ed27
|
@ -157,24 +157,20 @@ int main(void) {
|
|||
adc_init();
|
||||
timer_init();
|
||||
|
||||
uart_init(UART_BAUD_SELECT(38400,F_CPU));
|
||||
uart_init(UART_BAUD_SELECT(19200,F_CPU));
|
||||
|
||||
uint16_t uart_char;
|
||||
|
||||
while(1) {
|
||||
|
||||
if((syscounter % 100) == 0) {
|
||||
if(syscounter == 100) {
|
||||
syscounter = 0;
|
||||
|
||||
measure();
|
||||
|
||||
//pretty_print_all_values();
|
||||
|
||||
handle_over_and_undervoltage();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
uart_char = uart_getc();
|
||||
|
|
Loading…
Reference in New Issue