mirror of https://github.com/g4klx/MMDVMHost
Remove needless brackets
This commit is contained in:
parent
6ff224f13e
commit
63aa842c70
|
|
@ -38,7 +38,7 @@ def getBaudrate(ser, fSize=None, checkModel=None):
|
||||||
noConnect = False
|
noConnect = False
|
||||||
status, unknown1, model, fwversion, mcuversion, serial, flashSize = r.strip("\xff\x00").split(',')
|
status, unknown1, model, fwversion, mcuversion, serial, flashSize = r.strip("\xff\x00").split(',')
|
||||||
print 'Status: ' + status.split(' ')[0]
|
print 'Status: ' + status.split(' ')[0]
|
||||||
if (status.split(' ')[1] == "1"):
|
if status.split(' ')[1] == "1":
|
||||||
print 'Touchscreen: yes'
|
print 'Touchscreen: yes'
|
||||||
else:
|
else:
|
||||||
print 'Touchscreen: no'
|
print 'Touchscreen: no'
|
||||||
|
|
@ -116,7 +116,7 @@ if __name__ == "__main__":
|
||||||
except serial.serialutil.SerialException:
|
except serial.serialutil.SerialException:
|
||||||
print 'could not open serial device ' + sys.argv[2]
|
print 'could not open serial device ' + sys.argv[2]
|
||||||
exit(1)
|
exit(1)
|
||||||
if (serial.VERSION <= "3.0"):
|
if serial.VERSION <= "3.0":
|
||||||
if not ser.isOpen():
|
if not ser.isOpen():
|
||||||
ser.open()
|
ser.open()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue