Skip to content

Commit 09cf0fe

Browse files
jonathanherbstgrapplekorken89
authored andcommitted
fixed panic on the swj pins
1 parent d69fb8e commit 09cf0fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dap.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ impl swj::Dependencies<Swd, Jtag> for Context {
157157
}
158158

159159
let mut ret = swj::Pins::empty();
160+
self.swclk_to_input();
160161
ret.set(swj::Pins::SWCLK, self.swclk.is_high());
162+
self.swdio_to_input();
161163
ret.set(swj::Pins::SWDIO, self.swdio.is_high());
164+
self.nreset.into_input();
162165
ret.set(swj::Pins::NRESET, self.nreset.is_high());
163166

164167
trace!(

0 commit comments

Comments
 (0)