fixed data bus output buffer enable
[romdev] / fw / src / main.c
index 1d248f2..3977d78 100644 (file)
@@ -169,7 +169,11 @@ static void start_prog(void)
 
 static void end_prog(void)
 {
-       /* PGM low and return reset high */
+       /* make extra sure we don't drive the data bus */
+       release_data_bus();
+
+       /* PGM low and return reset and SS high */
+       PORTB |= PB_SS;
        PORTC &= ~PC_PGM;
        PORTC |= PC_SYSRST;