1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-03-28 18:06:37 +01:00

Integrated config menu into system page

This commit is contained in:
2025-08-03 21:18:08 +02:00
parent aed389f3b2
commit d5b0af3b19
7 changed files with 143 additions and 28 deletions

View File

@@ -192,3 +192,13 @@ Rect ConfigMenu::getItemRect(int8_t index) {
return {static_cast<double>(x), static_cast<double>(y + index * h),
static_cast<double>(w), static_cast<double>(h)};
}
void ConfigMenu::setCallback(void (*callback)()) {
fptrCallback = callback;
}
void ConfigMenu::storeValues() {
if (fptrCallback) {
fptrCallback();
}
}