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()
ser.close()
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:
out.write(mmdvm_version + '\n')
return mmdvm_version

Loading…
Cancel
Save