Mercurial > pihelp
changeset 36:c6f77df67dde
Fix programming
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Jun 2013 14:05:10 +0800 |
parents | cce426bb6d3e |
children | 858d5959929f 9e888708f33d |
files | main.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Thu Jun 27 05:40:00 2013 +0000 +++ b/main.c Thu Jun 27 14:05:10 2013 +0800 @@ -691,12 +691,15 @@ static void cmd_prog(const char* arg) { - if (safe_str_eq(arg, PROG_PASSWORD)) + if (!safe_str_eq(arg, PROG_PASSWORD)) { printf_P(PSTR("Bad prog password\n")); return; } + printf_P(PSTR("Programming...\n")); + long_delay(100); + // disable wdt wdt_disable();