mirror of
https://github.com/dg9vh/MMDVMHost-Websocketboard.git
synced 2026-02-25 00:34:23 +01:00
Some other behavior if modem-reply is not usable
This commit is contained in:
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…
Reference in a new issue