Update load_sigmastar (#1833)

pull/1834/head
viktorxda 2025-06-30 15:51:00 +02:00 committed by GitHub
parent ceac5f9a83
commit 9b56e9c573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@
MODULE=/lib/modules/5.10.61/sigmastar
SENSOR=$(fw_printenv -n sensor)
BUILD=$(grep BUILD_OPTION /etc/os-release | cut -d= -f2)
detect_sensor() {
insmod $MODULE/sensor_config.ko
@ -12,8 +13,11 @@ detect_sensor() {
echo srcfg 0 1 0 0 0 0 > /dev/srcfg
rmmod sensor_config
fi
SENSOR=$(ipcinfo -s)
if [ "$BUILD" != "fpv" ]; then
fw_setenv sensor "$SENSOR"
fi
}
set_sensor() {