1
0
Fork 0

Some other behavior if modem-reply is not usable

This commit is contained in:
Kim Huebel 2021-02-16 20:44:20 +00:00
parent a8b721b9d0
commit 37580baaae
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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