Browse Source

print error in example instead of quitting

embedded-hal-1.0
Chris 7 years ago
parent
commit
d0ac29ed90
  1. 6
      examples/embedded_linux_epd4in2/src/main.rs

6
examples/embedded_linux_epd4in2/src/main.rs

@ -61,8 +61,12 @@ impl<'a> InputPin for HackInputPin<'a> {
* BE CAREFUL: this wasn't tested yet, and the pins are also not choosen correctly (just some random ones atm)
*
*/
fn main() {
run().map_err(|e| println!("{:?}", e.to_string()));
}
fn main() -> Result<(), std::io::Error> {
fn run() -> Result<(), std::io::Error> {
// Configure SPI
// Settings are taken from

Loading…
Cancel
Save