Skip to content

Commit

Permalink
Configure genxnoise_desktop_module as USB gadget
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Dec 21, 2024
1 parent 9eeea2e commit 55ccc98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hwconfig/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,17 @@ for file in *.override; do
fi
fi

# Configure genxnoise_desktop_module as USB gadget (as intended by the manufacturer)
case "$file" in
*genxnoise_desktop_module*)
echo "" >> "$name_of_ini_file"
echo "# CAUTION: To prevent hardware damage, DO NOT use the port labeled 'PWR'" >> "$name_of_ini_file"
echo "# (the microUSB port near the edge of the device) when USBGadget is set to 1!" >> "$name_of_ini_file"
echo "# You need to disable USBGadget if you would like to use that port!" >> "$name_of_ini_file"
echo "# See https://github.com/probonopd/MiniDexed/wiki/Hardware#usb-gadget-mode for more information" >> "$name_of_ini_file"
echo "USBGadget=1" >> "$name_of_ini_file"
;;
esac

echo "Created $name_of_ini_file"
done

0 comments on commit 55ccc98

Please sign in to comment.