Skip to content

Commit 8894a63

Browse files
committed
fix(kodedot): Clean up OTA override and remove unused partition menu for kode dot
1 parent fc176ed commit 8894a63

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

boards.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50198,9 +50198,6 @@ kodedot.build.flash_size=16MB
5019850198
kodedot.build.flash_freq=80m
5019950199
kodedot.build.flash_mode=dio
5020050200

50201-
kodedot.menu.PartitionScheme.kodeos=Custom kodeOS
50202-
kodedot.menu.PartitionScheme.kodeos.build.partitions=kodedot_partitions
50203-
5020450201
kodedot.build.partitions=kodedot_partitions
5020550202

5020650203
kodedot.build.psram_type=qspi
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
// custom_ota_override.cpp
2-
// This function overrides the weak definition of `verifyRollbackLater()` in the kode dot board.
3-
4-
extern "C" {
5-
// Declare the weak function symbol to override it
6-
bool verifyRollbackLater() __attribute__((weak));
7-
}
8-
9-
// Custom implementation of verifyRollbackLater()
10-
// Returning `true` prevents the OTA image from being automatically marked as valid.
11-
// This ensures that the system will roll back to the previous image unless it is explicitly validated later.
12-
bool verifyRollbackLater() {
1+
extern "C" bool verifyRollbackLater() {
2+
// Returning true prevents the OTA image from being marked as valid
3+
// until you explicitly confirm it after the first boot.
134
return true;
14-
}
5+
}

0 commit comments

Comments
 (0)