Skip to content

Commit

Permalink
Updates for wikwi
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-se committed Sep 18, 2023
1 parent 5715ea4 commit eaccf5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/merge_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@


def merge_bin(source, target, env):
print( "Running merge bin." )

# The list contains all extra images (bootloader, partitions, eboot) and
# the final application binary
flash_images = env.Flatten(env.get("FLASH_EXTRA_IMAGES", [])) + ["$ESP32_APP_OFFSET", APP_BIN]

#flash_images.append( "0x390000" )
#flash_images.append( ".pio/build/gravity32-wokwi/spiffs.bin" )

# Run esptool to merge images into a single binary
env.Execute(
" ".join(
Expand Down Expand Up @@ -37,4 +42,4 @@ def merge_bin(source, target, env):
]
+ ["0x0", MERGED_BIN],
UPLOADCMD='"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS',
)
)
5 changes: 5 additions & 0 deletions src/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ extern RunMode runMode;
// Hardware config for ESP32-d1-min, iSpindel hardware
// ------------------------------------------------------
#include <FS.h>
#if defined(WOKWI) // TEMPORARY FIX FOR ISSUE https://github.com/wokwi/wokwi-features/issues/642
#include <SPIFFS.h>
#define LittleFS SPIFFS
#else
#include <LittleFS.h>
#endif

#include "esp32/rom/rtc.h"
#define ESPhttpUpdate httpUpdate
Expand Down

0 comments on commit eaccf5b

Please sign in to comment.