Mercurial > ~darius > hgwebdir.cgi > tempctrl
comparison 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 |
comparison
equal
deleted
inserted
replaced
62:e955aa7047ed | 63:4d914a1fd487 |
---|---|
212 "gc Get time of day\r\n" | 212 "gc Get time of day\r\n" |
213 "sc time Set time of day (time is YYYY/MM/DD HH:MM:SS)\r\n" | 213 "sc time Set time of day (time is YYYY/MM/DD HH:MM:SS)\r\n" |
214 #ifdef WITHUSB | 214 #ifdef WITHUSB |
215 "us Generate USB data\r\n" | 215 "us Generate USB data\r\n" |
216 #endif | 216 #endif |
217 "tc ... Temperature control related (tc help for more)\r\n" | 217 "tc ... Temperature control related (tc help for more)\r\n")); |
218 | 218 |
219 return; | 219 return; |
220 } else if (!strncasecmp_P((char *)cmd.buf, PSTR("zz"), 2)) { | 220 } else if (!strncasecmp_P((char *)cmd.buf, PSTR("zz"), 2)) { |
221 cli(); | 221 cli(); |
222 wdt_enable(WDTO_15MS); | 222 wdt_enable(WDTO_15MS); |
514 break; | 514 break; |
515 | 515 |
516 case 'c': | 516 case 'c': |
517 val = DDRC; | 517 val = DDRC; |
518 break; | 518 break; |
519 | 519 |
520 case 'd': | 520 case 'd': |
521 val = DDRD; | 521 val = DDRD; |
522 break; | 522 break; |
523 | 523 |
524 default: | 524 default: |
560 ds1307_printtime(PSTR(""), PSTR("\r\n")); | 560 ds1307_printtime(PSTR(""), PSTR("\r\n")); |
561 } else if (!strncasecmp_P((char *)cmd.buf, PSTR("sc"), 2)) { | 561 } else if (!strncasecmp_P((char *)cmd.buf, PSTR("sc"), 2)) { |
562 if (cmd.len < 17) { | 562 if (cmd.len < 17) { |
563 printf_P(PSTR("Command not long enough\r\n")); | 563 printf_P(PSTR("Command not long enough\r\n")); |
564 } else { | 564 } else { |
565 if (ds1307_settod(cmd.buf + 3) != 1) | 565 if (ds1307_settod((char *)cmd.buf + 3) != 1) |
566 printf_P(PSTR("Unable to set time of day\r\n")); | 566 printf_P(PSTR("Unable to set time of day\r\n")); |
567 } | 567 } |
568 } else { | 568 } else { |
569 printf_P(PSTR("Unknown command, help for a list\r\n")); | 569 printf_P(PSTR("Unknown command, help for a list\r\n")); |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 |