From 77502a30862decf611d970e0807f6636bb2ea0de Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Tue, 13 Feb 2018 17:50:18 -0800 Subject: [PATCH] Set max_usb_current=1 in /boot/config.txt from installer #103 --- CHANGELOG.md | 3 +++ package.json | 2 +- scripts/install.sh | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) 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 -- 2.27.0