Skip to content

Commit

Permalink
Make UART debugging work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
breaker27 committed Oct 12, 2013
1 parent 50011b4 commit c131c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/shc_tempsensor/shc_tempsensor.c
Expand Up @@ -106,7 +106,7 @@ int main ( void )
//osccal_init();

#ifdef UART_DEBUG
uart_init();
uart_init(false);
UART_PUTS ("\r\n");
UART_PUTS ("smarthomatic Tempsensor V1.0 (c) 2013 Uwe Freese, www.smarthomatic.org\r\n");
UART_PUTF ("Device ID: %u\r\n", device_id);
Expand Down Expand Up @@ -202,7 +202,7 @@ int main ( void )
setBuf32(12, crc);

#ifdef UART_DEBUG
// UART_PUTF3("Battery: %u%%, Temperature: %d deg.C, Humidity: %d%%\r\n", bat_percentage(vbat), temp / 100.0, hum / 100.0);
UART_PUTF3("Battery: %u%%, Temperature: %d deg.C, Humidity: %d%%\r\n", bat_percentage(vbat), temp / 100.0, hum / 100.0);
#endif

rfm12_sendbuf();
Expand Down

0 comments on commit c131c3b

Please sign in to comment.