Missing import + missing snapshot data fix

This commit is contained in:
Marianpol 2020-09-11 16:59:51 +02:00
parent 367b7c412b
commit 1143670740
2 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,7 @@ import sys
import os
import time
import gc
import re
os.chdir(os.path.dirname(os.path.realpath(sys.argv[0])))
@ -536,7 +537,7 @@ class ECU:
kb.set_getch_term()
else:
if mod_globals.opt_csv and (c in mod_globals.opt_usrkey):
csvline += ";" + c
csvline += ";" + pyren_encode(c)
continue
kb.set_normal_term()
if mod_globals.opt_csv and csvf!=0:
@ -563,7 +564,7 @@ class ECU:
clearScreen()
continue
if mod_globals.opt_csv and (c in mod_globals.opt_usrkey):
csvline += ";" + c
csvline += ";" + pyren_encode(c)
continue
kb.set_normal_term()
if mod_globals.opt_csv and csvf!=0:

View File

@ -98,6 +98,9 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
dataId = did
startByte = dataids[dataId].mnemolocations[m.name].startByte
startBit = dataids[dataId].mnemolocations[m.name].startBit
if dataId not in didDict:
didDict[dataId] = '0' * (int(dataids[dataId].dataBitLength)/8)
hexval = getHexVal(m, startByte, startBit, didDict[dataId])
return hexval