Skip to content

Commit 4e922fe

Browse files
feat(espefuse): Clean up efuse code for ESP32H2
1 parent d51ecbe commit 4e922fe

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

espefuse/efuse/esp32h2/fields.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -306,22 +306,9 @@ def convert(parent, efuse):
306306
"keypurpose": EfuseKeyPurposeField,
307307
"t_sensor": EfuseTempSensor,
308308
"adc_tp": EfuseAdcPointCalibration,
309-
"wafer": EfuseWafer,
310309
}.get(efuse.class_type, EfuseField)(parent, efuse)
311310

312311

313-
class EfuseWafer(EfuseField):
314-
def get(self, from_read=True):
315-
hi_bits = self.parent["WAFER_VERSION_MINOR_HI"].get(from_read)
316-
assert self.parent["WAFER_VERSION_MINOR_HI"].bit_len == 1
317-
lo_bits = self.parent["WAFER_VERSION_MINOR_LO"].get(from_read)
318-
assert self.parent["WAFER_VERSION_MINOR_LO"].bit_len == 3
319-
return (hi_bits << 3) + lo_bits
320-
321-
def save(self, new_value):
322-
raise esptool.FatalError("Burning %s is not supported" % self.name)
323-
324-
325312
class EfuseTempSensor(EfuseField):
326313
def get(self, from_read=True):
327314
value = self.get_bitstring(from_read)

0 commit comments

Comments
 (0)