fixing task file and removing thread

This commit is contained in:
talksik
2023-05-28 22:10:39 -07:00
parent d30f9569b9
commit 65c91bcaa9
29 changed files with 174 additions and 9 deletions
+1 -4
View File
@@ -34,10 +34,7 @@ fn main() -> Result<(), rppal::gpio::Error> {
let gpio = Gpio::new()?;
let pin = gpio.get(BUTTON_PIN)?.into_input_pullup();
// spawn a thread to read the pin
thread::spawn(move || {
read_loop(&pin);
});
read_loop(&pin);
Ok(())
}