diff tempctrl.c @ 69:3dcf933f2640

Write the sub command into the right variable (oops). Now you can set the ROM IDs.
author darius@Inchoate
date Mon, 19 Jan 2009 22:53:40 +1030
parents ac45a96e8034
children ea5862987368
line wrap: on
line diff
--- a/tempctrl.c	Mon Jan 19 22:52:36 2009 +1030
+++ b/tempctrl.c	Mon Jan 19 22:53:40 2009 +1030
@@ -575,7 +575,7 @@
 	!strcasecmp_P(cmd, PSTR("frg")) ||
 	!strcasecmp_P(cmd, PSTR("amb"))) {
 
-	if (sscanf_P((char *)cmd, PSTR("tc %5s %hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx"), cmd,
+	if (sscanf_P(buf, PSTR("tc %5s %hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx"), cmd,
 		     &ROM[0], &ROM[1], &ROM[2], &ROM[3],
 		     &ROM[4], &ROM[5], &ROM[6], &ROM[7]) != 9) {
 	    printf_P(PSTR("Unable to parse ROM ID\r\n"));