comparison main.c @ 36:c6f77df67dde

Fix programming
author Matt Johnston <matt@ucc.asn.au>
date Thu, 27 Jun 2013 14:05:10 +0800
parents cce426bb6d3e
children 9e888708f33d
comparison
equal deleted inserted replaced
35:cce426bb6d3e 36:c6f77df67dde
689 #endif 689 #endif
690 690
691 static void 691 static void
692 cmd_prog(const char* arg) 692 cmd_prog(const char* arg)
693 { 693 {
694 if (safe_str_eq(arg, PROG_PASSWORD)) 694 if (!safe_str_eq(arg, PROG_PASSWORD))
695 { 695 {
696 printf_P(PSTR("Bad prog password\n")); 696 printf_P(PSTR("Bad prog password\n"));
697 return; 697 return;
698 } 698 }
699
700 printf_P(PSTR("Programming...\n"));
701 long_delay(100);
699 702
700 // disable wdt 703 // disable wdt
701 wdt_disable(); 704 wdt_disable();
702 705
703 // disable interrupts 706 // disable interrupts