fix: serial device name

This commit is contained in:
eneller committed 2025-06-20 09:56:17 +02:00
1 parent 2de62edbb2
commit a625397998
2 files changed
+2 -2

No files matched your search

+1 -1
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"
+1 -1
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() {