No SnapShot record fix

This commit is contained in:
Marianpol 2020-09-17 13:31:14 +02:00
parent 1143670740
commit f34a4f2733

View File

@ -70,7 +70,7 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
snapshotService = se[sid]
resp = executeService( snapshotService, elm, [], "", True )
if mod_globals.opt_demo and not resp or not resp.startswith(snapshotService.simpleRsp):
if ((mod_globals.opt_demo and not resp) or not resp.startswith(snapshotService.simpleRsp) or len(resp)/2 == 6):
return "00"
resp = resp.strip().replace(' ','')
if not all(c in string.hexdigits for c in resp): resp = ''