1
0
Fork 0

Some other behavior if modem-reply is not usable

main
Kim Huebel 4 years ago
parent a8b721b9d0
commit 37580baaae

@ -1 +1 @@
var dashboard_version = "2021-02-16 20:36:01"; var dashboard_version = "2021-02-16 20:44:20";

@ -100,6 +100,8 @@ def getMMDVMVersionFromModem():
mmdvm_version += ch.decode() mmdvm_version += ch.decode()
ser.close() ser.close()
logging.info('Modem-Version={}'.format(mmdvm_version)) logging.info('Modem-Version={}'.format(mmdvm_version))
if len(mmdvm_version) < 5:
mmdvm_version = "Actually not available"
with open("/tmp/mmdvm-version", 'w') as out: with open("/tmp/mmdvm-version", 'w') as out:
out.write(mmdvm_version + '\n') out.write(mmdvm_version + '\n')
return mmdvm_version return mmdvm_version

Loading…
Cancel
Save