From e554c5132b091e3acf420f9a68cd189fc8e9b527 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Sat, 29 Nov 2025 19:21:10 +0800 Subject: [PATCH] fix: c4 lite detection --- launch_chffrplus.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 8bf8d7bc7..495998f89 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -45,12 +45,14 @@ set_tici_hw() { } set_lite_hw() { - output=$(i2cget -y 0 0x10 0x00 2>/dev/null) + if grep -q "tici" /sys/firmware/devicetree/base/model 2>/dev/null; then + output=$(i2cget -y 0 0x10 0x00 2>/dev/null) - if [ -z "$output" ]; then - echo "Lite HW" - export LITE=1 - export DISABLE_DRIVER=1 + if [ -z "$output" ]; then + echo "Lite HW" + export LITE=1 + export DISABLE_DRIVER=1 + fi fi }