Tools: correct decoding of hex values in watchdog decoder
This commit is contained in:
parent
d436e5b5d1
commit
55697a8f8e
@ -89,7 +89,7 @@ class DecodeWatchDog(object):
|
||||
return "Fault Address"
|
||||
|
||||
def string_value(self):
|
||||
return hex(int(self.value))
|
||||
return hex(int(self.value, 16))
|
||||
|
||||
class ComponentFTP(Component):
|
||||
|
||||
@ -110,7 +110,7 @@ class DecodeWatchDog(object):
|
||||
return "Fault ICS Register" # ?? FIXME: expand further
|
||||
|
||||
def string_value(self):
|
||||
return hex(int(self.value))
|
||||
return hex(int(self.value, 16))
|
||||
|
||||
def decode(self):
|
||||
return "[Below]"
|
||||
@ -147,7 +147,7 @@ class DecodeWatchDog(object):
|
||||
return "Internal Error Mask"
|
||||
|
||||
def string_value(self):
|
||||
return hex(int(self.value))
|
||||
return hex(int(self.value, 16))
|
||||
|
||||
class ComponentIEC(Component):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user