changed counter (bugfix)

changed baudrate to 19200
This commit is contained in:
Lucas Pleß 2013-06-14 01:35:41 +02:00
parent f24160281a
commit 7dc7d1ed27
1 changed files with 3 additions and 7 deletions

View File

@ -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();