print error in example instead of quitting
parent
2e2e70c59c
commit
d0ac29ed90
|
|
@ -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…
Reference in New Issue