Changeset 123
- Timestamp:
- 04/13/08 22:27:05 (5 months ago)
- Files:
-
- sucrose/trunk/python/api/magicalpic.py (modified) (1 diff)
- sucrose/trunk/python/api/sucrose.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sucrose/trunk/python/api/magicalpic.py
r79 r123 8 8 # We pause in between the sends because the PIC does not yet correctly buffer the inputs to send to the machine. 9 9 def vendItem(self, location): 10 location = location.rjust(2, '0')10 location = str(location).rjust(2, '0') 11 11 self.pic.write(location[0]) 12 12 time.sleep(0.5) sucrose/trunk/python/api/sucrose.py
r122 r123 66 66 self.session.save(txn) 67 67 if hasattr(self, 'pic'): 68 self.pic.vendItem( location)68 self.pic.vendItem(tray.machine_tray_id) 69 69 self.session.commit() 70 70 except:
