fix(rover): silence missing HIWONDER_EMM_EN on builds without the driver (#28887)

rc.rover checks HIWONDER_EMM_EN with param compare, which logs an error
when the parameter does not exist. The parameter only exists when the
hiwonder_emm driver is built, so rovers in SITL and on boards without
CONFIG_DRIVERS_HIWONDER_EMM printed "Parameter HIWONDER_EMM_EN not found"
at every startup.

Use param compare -s, which only suppresses that error. The result is
unchanged, so the driver still starts when the parameter is 1.

Fixes #28882

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com>
This commit is contained in:
Ahmet Burak Tektas authored and GitHub committed 2026-10-05 16:23:19 -04:00
1 parent 6e0bd88c35
commit 94ae73bca5
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@
# Start Land Detector.
land_detector start rover
if param compare HIWONDER_EMM_EN 1
if param compare -s HIWONDER_EMM_EN 1
then
hiwonder_emm start
fi