From 312d212d5feb2a19c59e542514525464d076d433 Mon Sep 17 00:00:00 2001 From: Arend-Jan van Hilten Date: Wed, 3 Jun 2026 10:47:24 +0200 Subject: [PATCH] Fix ros active check --- run_arduino.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_arduino.sh b/run_arduino.sh index e36fcc0..0088c7f 100755 --- a/run_arduino.sh +++ b/run_arduino.sh @@ -16,7 +16,7 @@ PICO_BUILD_LOCATION=$MIRTE_SRC_DIR/mirte-telemetrix4rpipico/build/Telemetrix4Rpi # Check if ROS is running ROS_RUNNING=0 -systemctl is-active mirte-ros | grep 'active' &>/dev/null +systemctl is-active mirte-ros | grep '^active' &>/dev/null # "inactive" would've also been grepped, so check for active only if [ $? == 0 ]; then ROS_RUNNING=1 fi