Bug corrections in share script: BACKING_STORE_FILE was the wrong file, trials not trial...

This commit is contained in:
vincent 2020-09-29 18:25:36 +02:00
parent 70fcbbe9b9
commit d7bcbad041
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ start_share () {
# Get connection state
local udc_state=$(cat /sys/class/udc/musb-hdrc.1.auto/state)
sleep 1
let trial=$trial+1
let trials=$trials+1
# Check if USB is mounted
if [ x"$udc_state" == "xconfigured" ]; then

View File

@ -88,7 +88,7 @@ init_usb_gadget() {
# Maximum power is 500 mA
echo 500 > ${GADGET}/configs/FunKey.1/MaxPower
# Configruation String Descriptors
# Configuration String Descriptors
if [ ${USBNET} -eq 1 ]; then
echo "Mass Storage + RNDIS" > ${GADGET}/configs/FunKey.1/strings/0x409/configuration
else