fix FirmwareImage.from_file()
This commit is contained in:
parent
5d8583409c
commit
ee32f6d3cf
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,8 @@ class FirmwareImage(BaseModel):
|
|||
|
||||
@classmethod
|
||||
def from_file(cls, file: BinaryIO) -> Self:
|
||||
result, data = cls.decode(file.read(FirmwareImage.get_min_size()))
|
||||
firmware_format = FirmwareImage.from_annotation(cls)
|
||||
result, data = firmware_format.decode(file.read(firmware_format.get_min_size()))
|
||||
return result
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue