From 411ae584549efd7ddfd82909295768d5fefd09ef Mon Sep 17 00:00:00 2001 From: "Francisco Blas (klondike) Izquierdo Riera" Date: Sun, 28 Jan 2024 05:40:55 +0100 Subject: [PATCH] fix: Allow the espefuse.py to work when coding scheme == 3 Signed-off-by: Francisco Blas (klondike) Izquierdo Riera --- espefuse/efuse/base_fields.py | 2 +- espefuse/efuse/esp32/fields.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/espefuse/efuse/base_fields.py b/espefuse/efuse/base_fields.py index 8ad6616f9..9a3d8a4e5 100644 --- a/espefuse/efuse/base_fields.py +++ b/espefuse/efuse/base_fields.py @@ -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 diff --git a/espefuse/efuse/esp32/fields.py b/espefuse/efuse/esp32/fields.py index 7ca5fc356..462919ab0 100644 --- a/espefuse/efuse/esp32/fields.py +++ b/espefuse/efuse/esp32/fields.py @@ -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