forked from btclock/btclock_v3
Fix workflow and auto updater webui filenames
This commit is contained in:
parent
1a4bc9b711
commit
c989169ff4
4 changed files with 16 additions and 4 deletions
|
@ -799,6 +799,19 @@ const char* getFirmwareFilename() {
|
|||
}
|
||||
}
|
||||
|
||||
const char* getWebUiFilename() {
|
||||
if (HW_REV == "REV_B_EPD_2_13") {
|
||||
return "littlefs_8MB.bin";
|
||||
} else if (HW_REV == "REV_A_EPD_2_13") {
|
||||
return "littlefs_4MB.bin";
|
||||
} else if (HW_REV == "REV_A_EPD_2_9") {
|
||||
return "littlefs_4MB.bin";
|
||||
} else {
|
||||
return "littlefs_4MB.bin";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// void loadIcons() {
|
||||
// size_t ocean_logo_size = 886;
|
||||
|
||||
|
|
|
@ -84,5 +84,5 @@ void addScreenMapping(int value, const char* name);
|
|||
int findScreenIndexByValue(int value);
|
||||
String replaceAmbiguousChars(String input);
|
||||
const char* getFirmwareFilename();
|
||||
|
||||
const char* getWebUiFilename();
|
||||
// void loadIcons();
|
|
@ -171,14 +171,13 @@ int downloadUpdateHandler(char updateType)
|
|||
break;
|
||||
case UPDATE_WEBUI:
|
||||
{
|
||||
latestRelease = getLatestRelease("littlefs.bin");
|
||||
latestRelease = getLatestRelease(getWebUiFilename());
|
||||
// updateWebUi(latestRelease.fileUrl, U_SPIFFS);
|
||||
// return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// First, download the expected SHA256
|
||||
String expectedSHA256 = downloadSHA256(latestRelease.checksumUrl);
|
||||
if (expectedSHA256.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue