diff --git a/tivars/flash.py b/tivars/flash.py index 340d68b..f86146b 100644 --- a/tivars/flash.py +++ b/tivars/flash.py @@ -790,5 +790,9 @@ def coerce(self): warn(f"Type ID 0x{self.type_id:02x} is not recognized; header will not be coerced to a subclass.", BytesWarning) + else: + warn("Type ID is 0xFF, no coercion will occur.", + UserWarning) + __all__ = ["DeviceType", "BCDDate", "BCDRevision", "TIFlashBlock", "TIFlashHeader"] diff --git a/tivars/var.py b/tivars/var.py index b42dd99..4315ca4 100644 --- a/tivars/var.py +++ b/tivars/var.py @@ -867,6 +867,10 @@ def coerce(self): warn(f"Type ID 0x{self.type_id:02x} is not recognized; entry will not be coerced to a subclass.", BytesWarning) + else: + warn("Type ID is 0xFF, no coercion will occur.", + UserWarning) + class TIVar: """