HAS_SENSORS in cmdline was introduced in commit
f356d114 to override
the default has_sensors variable. However, it only take effects if
the sensors type is not kbd. This is not my original idea.
The change allows HAS_SENSORS to override the default value no matter
what the sensors type is.
hal_sensors=hdaps
has_sensors=true
elif [ "$hal_sensors" != "kbd" ]; then
hal_sensors=hdaps
has_sensors=true
elif [ "$hal_sensors" != "kbd" ]; then
- has_sensors=${HAS_SENSORS:-true}
fi
set_property ro.hardware.sensors $hal_sensors
fi
set_property ro.hardware.sensors $hal_sensors
- set_property config.override_forced_orient $has_sensors
+ set_property config.override_forced_orient ${HAS_SENSORS:-$has_sensors}
}
function create_pointercal()
}
function create_pointercal()