fix: c4 lite detection

This commit is contained in:
Rick Lan
2025-11-29 19:21:10 +08:00
parent db4aa22794
commit e554c5132b
+7 -5
View File
@@ -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
}