Fix for snapShot service with no snapShot type defined

Example: 10460
This commit is contained in:
Marianpol 2021-12-27 11:42:46 +01:00
parent 22ce85d11b
commit ac8fc59a57

View File

@ -71,6 +71,13 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
if len(se[sid].params) > 1:
if se[sid].params[1]['type'] == 'Snapshot':
snapshotService = se[sid]
break
elif se[sid].startReq.startswith("1904"):
snapshotService = se[sid]
break
if not snapshotService:
return "00"
resp = executeService( snapshotService, elm, [], "", True )
if ((mod_globals.opt_demo and not resp) or not resp.startswith(snapshotService.simpleRsp) or len(resp)/2 == 6):