mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 03:13:41 +08:00
fix: c4 lite detection
This commit is contained in:
+7
-5
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user