Skip to content

Commit

Permalink
add legacy get_chip_revision for S2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jun 23, 2024
1 parent 0b0f157 commit 92e0214
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp_flasher/own_esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,10 @@ class ESP32S2ROM(ESP32ROM):

UF2_FAMILY_ID = 0xBFDD4EEE

# Returns old version format (ECO number). Use the new format get_chip_full_revision().
def get_chip_revision(self):
return self.get_major_chip_version()

def get_pkg_version(self):
num_word = 4
return (self.read_reg(self.EFUSE_BLOCK1_ADDR + (4 * num_word)) >> 0) & 0x0F
Expand Down

0 comments on commit 92e0214

Please sign in to comment.