Mercurial > ~darius > hgwebdir.cgi > avr
diff tempctrl.c @ 70:ea5862987368
Fix up parsing logic.
author | darius@Inchoate |
---|---|
date | Mon, 19 Jan 2009 22:54:08 +1030 |
parents | 3dcf933f2640 |
children | 553c061fda7c |
line wrap: on
line diff
--- a/tempctrl.c Mon Jan 19 22:53:40 2009 +1030 +++ b/tempctrl.c Mon Jan 19 22:54:08 2009 +1030 @@ -587,8 +587,11 @@ if (!strcasecmp_P(cmd, PSTR("amb"))) memcpy(settings.ambient_ROM, ROM, sizeof(ROM)); } + return; } + /* Handle setting the multitude of variables + * It's last to simplify things */ if (sscanf_P(buf, PSTR("tc %5s %d"), cmd, &data) != 2) { printf_P(PSTR("Unable to parse tc subcommand & value\r\n")); return; @@ -612,7 +615,6 @@ settings.minheatofftime = data; } else { printf_P(PSTR("Unknown setting\r\n")); - return; } }