mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Configure SPI pins as input when target is not in reset.
This commit is contained in:
parent
15da182399
commit
a17a757722
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user