This commit is contained in:
BIITER 2011-04-27 00:06:22 +02:00
parent e38d475d40
commit af36fa43f0
8 changed files with 57 additions and 36 deletions

View file

@ -79,7 +79,7 @@ class Device:
if self.fake:
print 'setout', which, state
else:
self.epo.write('o' + chr(which<<1 + state))
self.epo.write('o' + chr((which<<1) + state))
# 7x AD (16 bits) + 3 x I
def read(self):

View file

@ -29,7 +29,7 @@ class ModuleDebugWidget(QWidget):
# real device:
self.dev = Device()
# fake device:
# self.dev = Device(True)
# self.dev = Device(True)
self.timer = QTimer()
QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs)