Removed develop branch-specific code
Added required file check
Current exception will catch update-this-repo.sh not existing as a ProcessError, and display the error "script not up to date, please re-run updater.py", assuming the only error that this would catch is an update error. If the user moves this file outside of the utils dir for some reason, or copies it into the brewpi-script dir from an external brewpi-tools repo (and not the other required files), this error would be misleading. This patch checks to see if required file exist in same dir and suggest a solution.
Fixed typo
Updated error message with correct path
rename update-this-repo.sh
Rename file to further clarify which repo it is referencing, even though it was pretty obvious already
Check Arduino hex file version
This commit adds the functionality of querying the Arduino for the current version number, and comparing it to the BrewPi version installed on the Pi. If different, it advises the user of the need to update the hex file.
Download/install hex file
This commit adds functionality to parse dl.brewpi.com for available stable hex files, prompts the user to chose one to install,
downloads that hex file, then programs the Arduino with it, attempting to restore settings.
Removed debug code
Stop BrewPi prior to hex file check
Stops BrewPi while conducting hex file versioning. Without this, serial errors occur due to update script and brewpi itself
trying to communicate with the Arduino at the same time. This commit stops BrewPi prior to check, then restarts it after the
check
Swapped tabs for whitespace
Changed brewpiVersion to BrewPiUtil
Updated setupSerial method to be imported from BrewPiUtil instead of brewpiVersion
This commit should be used in conjunction with the related commit on brewpi-script
Fixed welcome banner
Added restore settings choices
Fixed ability to skip Arduino update
Previous code error'd when selecting the skip update option on the menu. Moved the related code to a new function,
as it should have been done in the first place\!
use stopAll() instead of quitAll()
quitAll() did not write do_not_run_brewpi to the webpath, and thus was able to restart while programming
the Arduino. Switching to stopAll(), in conjunction with the related commit to brewpi-script, prevents
BrewPi from restarting during programming and causing a serial error
Check/Suggest hex file to use
Use already-existing getVersionFromSerial object to guess shield and board type, then suggest the
corresponding hex file to the user, and set that file in the list to the default selection
Handle inability to guess a hex file
If we can't guess a hex file, set the default guess to not install any file
Merge branch 'hotfix/install-with-custom-www-path-fix'
Merge branch 'master' of github.com:BrewPi/brewpi-tools
Merge remote-tracking branch 'vanosg/movedSerialFunction' into program-arduino