Skip to content

Commit f873834

Browse files
committed
reviews
1 parent e3544c6 commit f873834

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

espflash/src/connection/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,12 @@ impl Connection {
318318
}
319319
}
320320
}
321-
_ => println!("Unsupported chip for watchdog reset {:?}", chip),
321+
_ => {
322+
return Err(Error::UnsupportedFeature {
323+
chip,
324+
feature: "watchdog reset".into(),
325+
})
326+
}
322327
}
323328

324329
Ok(())

0 commit comments

Comments
 (0)