File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1111#include " esp32-hal-psram.h"
1212#endif
1313
14- #ifndef NDEBUG_INITIAL_UTILITIES_GROUPS
15- // Verify sort order in debug builds
16- for (size_t i = 1 ; i < UTILITIES_GROUPS_COUNT; ++i) {
17- assert (std::strcmp (INITIAL_UTILITIES_GROUPS[i-1 ].group_id ,
18- INITIAL_UTILITIES_GROUPS[i].group_id ) < 0 );
19- }
20- #endif
21-
2214namespace nspanel_easy {
2315
2416 bool page_utilities_enabled = false ;
@@ -30,6 +22,14 @@ namespace nspanel_easy {
3022
3123 void resetUtilitiesGroups () {
3224
25+ #ifndef NDEBUG
26+ // Verify sort order in debug builds
27+ for (size_t i = 1 ; i < UTILITIES_GROUPS_COUNT; ++i) {
28+ assert (std::strcmp (INITIAL_UTILITIES_GROUPS[i-1 ].group_id ,
29+ INITIAL_UTILITIES_GROUPS[i].group_id ) < 0 );
30+ }
31+ #endif // NDEBUG
32+
3333 cleanupUtilitiesGroups (); // Free any existing allocation first
3434
3535 #ifdef USE_ESP_IDF // To-do: Review if this arduino specific code is still needed
You can’t perform that action at this time.
0 commit comments