Skip to content

Commit

Permalink
Fix partition layout for ipstube clock
Browse files Browse the repository at this point in the history
  • Loading branch information
judge2005 committed Dec 7, 2024
1 parent 4279c30 commit 413849a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ framework = arduino
platform_packages = framework-arduinoespressif32 @ 3.20014.231204
board_build.partitions = partitions.csv
board_build.filesystem = littlefs
upload_port = /dev/cu.usbserial-1330
monitor_port = /dev/cu.usbserial-1330
upload_port = /dev/cu.usbserial-1320
monitor_port = /dev/cu.usbserial-1320
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
Expand Down
16 changes: 15 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ IRAMPtrArray<char*> manifest {
"Unknown clock hardware",
#endif
// Firmware version
"1.6.0",
"1.6.1",
// Hardware chip/variant
"ESP32",
// Device name
Expand Down Expand Up @@ -127,7 +127,21 @@ String ssid("EleksTubeIPS");
String chipId = getChipId();

// Persistent Configuration
#if defined(HARDWARE_PunkCyber_CLOCK)
StringConfigItem hostName("hostname", 63, "punkcyber");
#elif defined(HARDWARE_Elekstube_CLOCK)
StringConfigItem hostName("hostname", 63, "elekstubeips");
#elif defined(HARDWARE_Elekstube_CLOCK_V2)
StringConfigItem hostName("hostname", 63, "elekstubeipsv2");
#elif defined(HARDWARE_NovelLife_SE_CLOCK)
StringConfigItem hostName("hostname", 63, "novellifese");
#elif defined(HARDWARE_SI_HAI_CLOCK)
StringConfigItem hostName("hostname", 63, "sihai");
#elif defined(HARDWARE_IPSTube_CLOCK)
StringConfigItem hostName("hostname", 63, "ipstube");
#else
StringConfigItem hostName("hostname", 63, "ipsclock");
#endif

// Clock config

Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.6.0"
version = "1.6.1"
4 changes: 2 additions & 2 deletions web/esp-web-tools-manifest-ipstube-firmware-only.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "EleksTubeIPS V1 Replacement Firmware",
"name": "IPSTube Replacement Firmware",
"version": "$version$",
"new_install_prompt_erase": true,
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "firmware-elekstubev1-$version$.bin", "offset": 65536 }
{ "path": "firmware-ipstube-$version$.bin", "offset": 65536 }
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions web/esp-web-tools-manifest-ipstube.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"improv": false,
"parts": [
{ "path": "bootloader.bin", "offset": 4096 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "partitions8MB.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "firmware-ipstube-$version$.bin", "offset": 65536 },
{ "path": "littlefs-$version$.bin", "offset": 1572864 }
{ "path": "littlefs8MB-$version$.bin", "offset": 1572864 }
]
}
]
Expand Down

0 comments on commit 413849a

Please sign in to comment.