Update documenatation

This commit is contained in:
Chris
2018-10-19 09:47:36 +02:00
parent 0b77b069a4
commit bbdecdb6f7
3 changed files with 6 additions and 26 deletions
+2 -7
View File
@@ -55,13 +55,8 @@ 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)
*
*/
//TODO: Test this implemenation
//BE CAREFUL: this wasn't tested yet
fn main() {
run().unwrap();
+1 -7
View File
@@ -51,8 +51,6 @@ impl<'a> HackInputPin<'a> {
}
}
//TODO: make it safer?? or handle the errors better?
// now it defaults to is_low if an error appears
impl<'a> InputPin for HackInputPin<'a> {
fn is_low(&self) -> bool {
self.pin.get_value().unwrap_or(0) == 0
@@ -64,11 +62,7 @@ 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())).unwrap();
}