# HG changeset patch # User darius@Inchoate # Date 1232367820 -37800 # Node ID 3dcf933f2640de31bcf9e370c7cb893ad3308942 # Parent ac45a96e803448ade96079e58e3e0aee50d2da2f Write the sub command into the right variable (oops). Now you can set the ROM IDs. diff -r ac45a96e8034 -r 3dcf933f2640 tempctrl.c --- 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"));