Skip to content

Commit

Permalink
0.8.121
Browse files Browse the repository at this point in the history
* fix ESP32 factory image generation
  • Loading branch information
lumapu committed May 20, 2024
1 parent 8c7bb93 commit 267d2da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/add_littlefs_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
def build_littlefs():
if os.path.isfile('data/settings.json') == False:
return # nothing to do

result = subprocess.run(["pio", "run", "--target", "buildfs", "--environment", env['PIOENV']])
if result.returncode != 0:
print("Error building LittleFS:")
Expand All @@ -23,14 +24,16 @@ def merge_bins():
PARTITIONS_OFFSET = 0x8000
FIRMWARE_OFFSET = 0x10000

flash_size = int(env.BoardConfig().get("upload.maximum_size", "4194304"))
if env['PIOENV'][:13] == "esp32-wroom32":
BOOTLOADER_OFFSET = 0x1000

flash_size = int(env.BoardConfig().get("upload.maximum_size", "1310720")) # 0x140000
app0_offset = 0x10000
if env['PIOENV'][:7] == "esp8266":
app0_offset = 0
elif env['PIOENV'][:7] == "esp8285":
app0_offset = 0

print(flash_size)
littlefs_offset = 0x290000
if flash_size == 0x330000:
littlefs_offset = 0x670000
Expand Down
3 changes: 3 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Development Changes

## 0.8.121 - 2024-05-20
* fix ESP32 factory image generation

## 0.8.120 - 2024-05-18
* fix crash if invalid serial number was set -> inverter will be disabled automatically
* improved and fixed factory image generation
Expand Down

0 comments on commit 267d2da

Please sign in to comment.