* feat(variant): add KodeDot ESP32-S3 board with QSPI LCD, SD and GPIO header * fix(kodedot): Reorder board definitions and translate comments to English * fix(kodedot): Clean up OTA override and remove unused partition menu for kode dot * fix(kodedot): Build board changed from ESP32S3_DEV to KODE_DOT on kode dot board * ci(pre-commit): Fix whitespace, EOLs and codespell 'Analog' * ci(pre-commit): Add bash script formatter * fix(merge): New name and description for custom merge tool and change partitions table to variants folder
14 lines
533 B
C++
14 lines
533 B
C++
// custom_ota_override.cpp
|
|
// This function overrides the weak definition of `verifyRollbackLater()` in the kode dot board.
|
|
|
|
extern "C" {
|
|
// Declare the weak function symbol to override it
|
|
bool verifyRollbackLater() __attribute__((weak));
|
|
}
|
|
|
|
// Custom implementation of verifyRollbackLater()
|
|
// Returning `true` prevents the OTA image from being automatically marked as valid.
|
|
// This ensures that the system will roll back to the previous image unless it is explicitly validated later.
|
|
bool verifyRollbackLater() {
|
|
return true;
|
|
}
|