mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-28 09:46:26 +02:00
0.8.121
* fix ESP32 factory image generation
This commit is contained in:
parent
8c7bb9358e
commit
267d2dae26
2 changed files with 8 additions and 2 deletions
|
@ -8,6 +8,7 @@ Import("env")
|
|||
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:")
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue