spelling: definition

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 11:50:38 -05:00
parent 2d7ac814c6
commit a0b9ef4851
6 changed files with 15 additions and 15 deletions

View file

@ -28,7 +28,7 @@ class PebbleAppHeader(object):
# 116 bytes
V1_STRUCT_VERSION = (0x08, 0x01)
V1_STRUCT_DEFINTION = [
V1_STRUCT_DEFINITION = [
# format, name, deserialization transform, serialization transform
('B', 'sdk_version_major', None, None),
('B', 'sdk_version_minor', None, None),
@ -49,9 +49,9 @@ class PebbleAppHeader(object):
# 120 bytes
V2_STRUCT_VERSION = (0x10, 0x00)
V2_STRUCT_DEFINTION = list(V1_STRUCT_DEFINTION)
del V2_STRUCT_DEFINTION[12] # relocation list was dropped in v2.x
V2_STRUCT_DEFINTION += [
V2_STRUCT_DEFINITION = list(V1_STRUCT_DEFINITION)
del V2_STRUCT_DEFINITION[12] # relocation list was dropped in v2.x
V2_STRUCT_DEFINITION += [
('I', 'resource_crc', None, None),
('I', 'resource_timestamp', None, None),
('H', 'virtual_size', None, None),
@ -59,8 +59,8 @@ class PebbleAppHeader(object):
V2_HEADER_LENGTH = 10 + 120
DEFINITION_MAP = {
V1_STRUCT_VERSION: V1_STRUCT_DEFINTION,
V2_STRUCT_VERSION: V2_STRUCT_DEFINTION,
V1_STRUCT_VERSION: V1_STRUCT_DEFINITION,
V2_STRUCT_VERSION: V2_STRUCT_DEFINITION,
}
@classmethod