Skip to content

Commit 4ae55e1

Browse files
committed
Fixed script for usb gadget devices
1 parent 213e201 commit 4ae55e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes-devtools/android-tools/android-tools/arduino-android-gadget-setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ start()
3838
# populate config, optional
3939
mkdir configs/c.1/strings/0x409
4040
CFG_STRING="adb+acm"
41-
if [[ $ENABLED_SCHEMAS="*ncm*" ]]; then
41+
if [[ $ENABLED_SCHEMAS =~ "ncm" ]]; then
4242
CFG_STRING="adb+acm+ncm"
4343
fi
4444
echo $CFG_STRING > configs/c.1/strings/0x409/configuration
@@ -50,7 +50,7 @@ start()
5050
# create the acm (serial) function
5151
mkdir functions/acm.GS0
5252

53-
if [[ $ENABLED_SCHEMAS="*ncm*" ]]; then
53+
if [[ $ENABLED_SCHEMAS =~ "ncm" ]]; then
5454
# create the ncm function
5555
mkdir functions/ncm.usb0
5656

0 commit comments

Comments
 (0)