blob: ed6a6696c6d878665c631c3b4e6358675a3ade63 [file] [log] [blame]
INIT_VALUE = 1
STEP = 2
if request.isInit:
lastVal = 0
step = 1
elif request.isUser:
if request.offset == INIT_VALUE:
lastVal = request.value
elif request.offset == STEP:
step = request.value
else:
lastVal = lastVal + step
request.value = lastVal
self.NoisyLog("%s on TICKER at 0x%x, value 0x%x" % (str(request.type), request.offset, request.value))