fix: serial device name

This commit is contained in:
eneller
2025-06-20 09:56:17 +02:00
parent 2de62edbb2
commit a625397998
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
# should be in /etc/udev/rules.d/ # 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"

View File

@@ -4,7 +4,7 @@ use serialport::SerialPort;
const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5); const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
const HEARTBEAT_MESSAGE: &str = "OK"; const HEARTBEAT_MESSAGE: &str = "OK";
const WATCHDOG_DEVICE: &str = "/dev/watchdog0"; const WATCHDOG_DEVICE: &str = "/dev/heartbeat";
fn main() { fn main() {