From 28141c91feb4446372feb570a93f254663481e77 Mon Sep 17 00:00:00 2001 From: Paxy Date: Sun, 20 Jul 2025 18:41:04 +0200 Subject: [PATCH] Update ButtonThread.cpp Fixed formatting. Added exclusion for devices with eink. This functionality make only sense for trackers. --- src/ButtonThread.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ButtonThread.cpp b/src/ButtonThread.cpp index 8bb073817..b090f67ba 100644 --- a/src/ButtonThread.cpp +++ b/src/ButtonThread.cpp @@ -192,16 +192,17 @@ int32_t ButtonThread::runOnce() screen->forceDisplay(true); // Force a new UI frame, then force an EInk update } break; - +#endif +#if !defined(USE_EINK) // 4 clicks: toggle Lost and found - case 4: + case 4: if (config.device.role == meshtastic_Config_DeviceConfig_Role_CLIENT) { LOG_WARN("Changing mode to LOST_AND_FOUND"); config.device.role = meshtastic_Config_DeviceConfig_Role_LOST_AND_FOUND; if (screen) screen->startAlert("Switching to LOST!"); nodeDB->saveToDisk(SEGMENT_CONFIG); - }else{ + } else { LOG_WARN("Changing mode to Client"); config.device.role = meshtastic_Config_DeviceConfig_Role_CLIENT; if (screen)