Skip to content

Commit

Permalink
fix: Allow the espefuse.py to work when coding scheme == 3
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Blas (klondike) Izquierdo Riera <[email protected]>
  • Loading branch information
klondi committed Jan 28, 2024
1 parent 96a5c21 commit 411ae58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion espefuse/efuse/base_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self, parent, param, skip_read=False):

def get_block_len(self):
coding_scheme = self.get_coding_scheme()
if coding_scheme == self.parent.REGS.CODING_SCHEME_NONE:
if coding_scheme == self.parent.REGS.CODING_SCHEME_NONE or coding_scheme == self.parent.REGS.CODING_SCHEME_NONE_RECOVERY:
return self.len * 4
elif coding_scheme == self.parent.REGS.CODING_SCHEME_34:
return (self.len * 3 // 4) * 4
Expand Down
2 changes: 1 addition & 1 deletion espefuse/efuse/esp32/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, esp, skip_connect=False, debug=False, do_not_confirm=False):
EfuseField.convert(self, efuse) for efuse in self.Fields.ADC_CALIBRATION
]
else:
if self.coding_scheme == self.REGS.CODING_SCHEME_NONE:
if self.coding_scheme == self.REGS.CODING_SCHEME_NONE or self.coding_scheme == self.REGS.CODING_SCHEME_NONE_RECOVERY:
self.efuses += [
EfuseField.convert(self, efuse)
for efuse in self.Fields.KEYBLOCKS_256
Expand Down

0 comments on commit 411ae58

Please sign in to comment.