diff --git a/main/ledstrip.cpp b/main/ledstrip.cpp index 2ff37ce..0556275 100644 --- a/main/ledstrip.cpp +++ b/main/ledstrip.cpp @@ -357,7 +357,7 @@ void showCustomColor() #endif } -bool activateAutomaticFrontLight() +[[nodiscard]] bool activateAutomaticFrontLight() { if (!configs.ledstrip.automaticLight.value) return false; diff --git a/main/ledstrip.h b/main/ledstrip.h index 53f12f6..1aa7d75 100644 --- a/main/ledstrip.h +++ b/main/ledstrip.h @@ -50,4 +50,4 @@ void showOtaAnimation(); void initLedStrip(); void updateLedStrip(); -bool activateAutomaticFrontLight(); +[[nodiscard]] bool activateAutomaticFrontLight();