fix: serial device name
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# should be in /etc/udev/rules.d/
|
||||
ACTION=="add", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", NAME="heartbeat-listener"
|
||||
ACTION=="add", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", NAME="heartbeat"
|
||||
|
||||
@@ -4,7 +4,7 @@ use serialport::SerialPort;
|
||||
|
||||
const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
|
||||
const HEARTBEAT_MESSAGE: &str = "OK";
|
||||
const WATCHDOG_DEVICE: &str = "/dev/watchdog0";
|
||||
const WATCHDOG_DEVICE: &str = "/dev/heartbeat";
|
||||
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user