diff testavr.c @ 63:4d914a1fd487

Fix printf typo from last commit. Cast away volatile to avoid compiler warning.
author darius@Inchoate
date Thu, 30 Oct 2008 20:09:32 +1030
parents 50fca9562310
children 1ef17cd8af7a
line wrap: on
line diff
--- 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 @@
     }
 }
 
-