add car supports for unsupported devices

added support for tto usecar accessory with devices normally unsupported.  You may control it via the command line.  Unsupported devices will not work using the car app.
This commit is contained in:
Alfonso Gamboa
2022-07-14 13:56:47 -07:00
parent 3fa72158e7
commit 84c893e593
6 changed files with 133 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ if [[ "$DISABLE_MOTOR" == "true" ]]; then
fi
#Enable serial driver for car
if [ -f /opt/wz_mini/tmp/.CAR ]; then
if [ -f /opt/wz_mini/tmp/.CAR ] || [[ "$ENABLE_CAR_DRIVER" == "true"]]; then
modprobe cp210x
fi