# HG changeset patch # User drewp # Date 1376718893 25200 # Node ID 84d415fd454e5f01e43dbf881655d9526f45dad5 # Parent 3ad6b7bcdaff7e104bc520fa13b7c01355d21411 fix broken request paths Ignore-this: dbfef5f7358cf2b89dc58dd3c377041c darcs-hash:20130817055453-312f9-f1d8488b7434048cecc73f8ee2b4e80e6483e627 diff -r 3ad6b7bcdaff -r 84d415fd454e service/starArduino/starArduino.py --- a/service/starArduino/starArduino.py Fri Aug 02 08:06:05 2013 -0700 +++ b/service/starArduino/starArduino.py Fri Aug 16 22:54:53 2013 -0700 @@ -6,7 +6,6 @@ import sys,json from twisted.internet import reactor, task -from twisted.internet.task import LoopingCall import cyclone.web, restkit sys.path.append("/my/proj/pixel/shiftweb") @@ -49,16 +48,16 @@ class Barcode(PrettyErrorHandler, cyclone.web.RequestHandler): def get(self): self.set_header("Content-Type", "text/plain") - ser = self.settings.arduino.ser - ser.write("\x60\x02") - self.write(str(ser.readJson())) + ard = self.settings.arduino + ard.ser.write("\x60\x02") + self.write(str(ard.readJson())) class BarcodeBeep(PrettyErrorHandler, cyclone.web.RequestHandler): def put(self): self.set_header("Content-Type", "text/plain") - ser = self.settings.arduino.ser - ser.write("\x60\x03") - self.write(str(ser.readJson())) + ard = self.settings.arduino + ard.ser.write("\x60\x03") + self.write(str(ard.readJson())) def barcodeWatch(arduino, postBarcode): arduino.ser.write("\xff\xfb")