# HG changeset patch # User darius@Inchoate # Date 1225359572 -37800 # Node ID 4d914a1fd4870f3676514fd198beb833accae16d # Parent e955aa7047ed6abea7923f58856e6345680d07e5 Fix printf typo from last commit. Cast away volatile to avoid compiler warning. diff -r e955aa7047ed -r 4d914a1fd487 testavr.c --- a/testavr.c Thu Oct 30 20:09:02 2008 +1030 +++ b/testavr.c Thu Oct 30 20:09:32 2008 +1030 @@ -214,7 +214,7 @@ #ifdef WITHUSB "us Generate USB data\r\n" #endif - "tc ... Temperature control related (tc help for more)\r\n" + "tc ... Temperature control related (tc help for more)\r\n")); return; } else if (!strncasecmp_P((char *)cmd.buf, PSTR("zz"), 2)) { @@ -516,7 +516,7 @@ case 'c': val = DDRC; break; - + case 'd': val = DDRD; break; @@ -562,7 +562,7 @@ if (cmd.len < 17) { printf_P(PSTR("Command not long enough\r\n")); } else { - if (ds1307_settod(cmd.buf + 3) != 1) + if (ds1307_settod((char *)cmd.buf + 3) != 1) printf_P(PSTR("Unable to set time of day\r\n")); } } else { @@ -570,4 +570,3 @@ } } -