Permalink
Browse files

Update bits.py

  • Loading branch information...
schofiaj authored and peircej committed Apr 20, 2018
1 parent e7b111c commit ff5a4ab7c430fd1664d0a06d448028c7b126acec
Showing with 6 additions and 6 deletions.
  1. +6 −6 psychopy/hardware/crs/bits.py
@@ -581,18 +581,18 @@ def getInfo(self):
# get product ('Bits_Sharp'?)
self.sendMessage(b'$ProductType\r')
time.sleep(0.1)
info['ProductType'] = self.read().replace('#ProductType;', '')
info['ProductType'] = info['ProductType'].replace(';\n\r', '')
info['ProductType'] = self.read().replace(b'#ProductType;', b'')
info['ProductType'] = info['ProductType'].replace(b';\n\r', b'')
# get serial number
self.sendMessage(b'$SerialNumber\r')
time.sleep(0.1)
info['SerialNumber'] = self.read().replace('#SerialNumber;', '')
info['SerialNumber'] = info['SerialNumber'].replace('\x00\n\r', '')
info['SerialNumber'] = self.read().replace(b'#SerialNumber;', b'')
info['SerialNumber'] = info['SerialNumber'].replace(b'\x00\n\r', b'')
# get firmware date
self.sendMessage(b'$FirmwareDate\r')
time.sleep(0.1)
info['FirmwareDate'] = self.read().replace('#FirmwareDate;', '')
info['FirmwareDate'] = info['FirmwareDate'].replace(';\n\r', '')
info['FirmwareDate'] = self.read().replace(b'#FirmwareDate;', b'')
info['FirmwareDate'] = info['FirmwareDate'].replace(b';\n\r', b'')
return info
@property

0 comments on commit ff5a4ab

Please sign in to comment.