Skip to content

Commit

Permalink
added new version of frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolukas committed Jul 5, 2017
1 parent 40fbb79 commit 92cb3fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fabscanpi-server (0.4.1) UNRELEASED; urgency=medium
* fixed preview stream issues
* fixed default config values
* fixed turntable pointcloud roi
* added calibration notification message

-- Mario Lukas <info@fabscan.org> Sun, 2 Jun 2017 14:12:42 +0100

Expand Down
2 changes: 1 addition & 1 deletion debian/fabscanpi-sudoers
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fabscan ALL=NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get dist-upgrade -y
fabscan ALL=NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get dist-upgrade -y, /usr/bin/avrdude
2 changes: 1 addition & 1 deletion debian/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ then
fi

adduser --system $FABSCAN_USER --home $SCANS_DIR --no-create-home > /dev/null 2>&1 || true
usermod -a -G dialout $FABSCAN_USER
usermod -a -G dialout -G pi -G sudo -G tty $FABSCAN_USER

exit 0
Binary file modified src/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions src/fabscan/scanner/laserscanner/FSSerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def __init__(self, config):


def avr_device_is_available(self):
status = FSSystem.run_command("avrdude -p m328p -b "+str(self.flash_baudrate)+" -carduino -P"+str(self._port))
status = FSSystem.run_command("sudo avrdude -p m328p -b "+str(self.flash_baudrate)+" -carduino -P"+str(self._port))
return status == 0

def avr_flash(self, fname):
FSSystem.run_command("wc -l "+str(fname))
status = FSSystem.run_command("avrdude -D -V -U flash:w:"+str(fname)+":i -b "+str(self.flash_baudrate)+" -carduino -pm328p -P"+str(self._port))
status = FSSystem.run_command("sudo avrdude -D -V -U flash:w:"+str(fname)+":i -b "+str(self.flash_baudrate)+" -carduino -pm328p -P"+str(self._port))
if status != 0:
self._logger.error("Failed to flash firmware")
return status == 0
Expand Down

0 comments on commit 92cb3fa

Please sign in to comment.