Some other behavior if modem-reply is not usable
This commit is contained in:
parent
a8b721b9d0
commit
37580baaae
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue