Configure SPI pins as input when target is not in reset.

This commit is contained in:
Peter Van Hoyweghen 2015-02-25 21:55:14 +01:00
parent 15da182399
commit a17a757722
1 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,10 @@ void start_pmode() {
void end_pmode() {
SPI.end();
// We're about to take the target out of reset
// so configure SPI pins as input
pinMode(MOSI, INPUT);
pinMode(SCK, INPUT);
reset_target(false);
pinMode(RESET, INPUT);
pmode = 0;