-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,711 additions
and
940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,4 +131,6 @@ web/temp | |
web/assets | ||
web/src/temp | ||
genssl.sh | ||
thunder-tests/ | ||
thunder-tests/ | ||
*.bin | ||
*.bin.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
"ups_rated_battery_amps_max": 9, | ||
"wifi_reconnect_method": 2 | ||
}, | ||
"version": "1.2.2" | ||
"version": "1.3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# ESP-IDF Partition Table | ||
# ESP32 Partitions: https://github.com/espressif/arduino-esp32/blob/master/docs/source/tutorials/partition_table.rst#partition-table | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x7000, | ||
factory, app, factory, 0x10000, 0x26A000, | ||
storage, data, fat, 0x27A000, 0x16E000, | ||
# ESP32 Partitions: https://github.com/espressif/arduino-esp32/blob/master/docs/source/tutorials/partition_table.rst#partition-table | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xE000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x150000, | ||
app1, app, ota_1, 0x160000, 0x150000, | ||
storage, data, fat, 0x2B0000, 0x138000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Import("env") | ||
import os | ||
import shutil | ||
|
||
root = os.getcwd() | ||
|
||
def before_buildfs(source, target, env): | ||
env.Execute("yarn build:prod") | ||
|
||
env.AddPreAction("$BUILD_DIR/fatfs.bin", before_buildfs) | ||
|
||
def after_buildfs(source, target, env): | ||
## source is web/data directory | ||
path = target[0].get_abspath() | ||
shutil.copyfile(path, root + "/filesystem.bin") | ||
|
||
env.AddPostAction("$BUILD_DIR/fatfs.bin", after_buildfs) | ||
|
||
def after_build(source, target, env): | ||
# print(source[0].get_path()) | ||
path = source[0].get_abspath() | ||
# print(path) | ||
shutil.copyfile(os.path.splitext(path)[0] + ".bin", root + "/firmware.bin") | ||
|
||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", after_build) | ||
|
||
def after_cleanup(source, target, env): | ||
print("Clean up root directory...") | ||
os.remove(root + "/filesystem.bin") | ||
os.remove(root + "/firmware.bin") | ||
|
||
env.AddPostAction("clean", after_cleanup) | ||
env.AddPostAction("fullclean", after_cleanup) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.