From: Joseph Coffland Date: Wed, 14 Feb 2018 01:50:18 +0000 (-0800) Subject: Set max_usb_current=1 in /boot/config.txt from installer #103 X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=77502a30862decf611d970e0807f6636bb2ea0de;p=bbctrl-firmware Set max_usb_current=1 in /boot/config.txt from installer #103 --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c7719..6a2516e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ Buildbotics CNC Controller Firmware Change Log ============================================== +## v0.3.6 + - Set max_usb_current=1 in /boot/config.txt from installer #103 + ## v0.3.5 - Fixed dwell (G4) - Always show limit switch indicators regardless of motor enable diff --git a/package.json b/package.json index fc0d42f..ef0b0a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bbctrl", - "version": "0.3.5", + "version": "0.3.6", "homepage": "http://buildbotics.com/", "repository": "https://github.com/buildbotics/bbctrl-firmware", "license": "GPL-3.0+", diff --git a/scripts/install.sh b/scripts/install.sh index 026d368..563d860 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -22,6 +22,14 @@ if $UPDATE_AVR; then ./scripts/avr109-flash.py src/avr/bbctrl-avr-firmware.hex fi +# Increase USB current +grep max_usb_current /boot/config.txt >/dev/null +if [ $? -ne 0 ]; then + mount -o remount,rw /boot && + echo max_usb_current=1 >> /boot/config.txt + mount -o remount,ro /boot +fi + if $UPDATE_PY; then rm -rf /usr/local/lib/python*/dist-packages/bbctrl-* ./setup.py install --force