From b211d8b085475247cc99379260aa67839b0e368d Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 10 Feb 2022 19:48:13 +0100 Subject: [PATCH] Fix SSDR usermod if SN_Photoresistor mod is not included --- .../usermod_seven_segment_reloaded.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usermods/seven_segment_display_reloaded/usermod_seven_segment_reloaded.h b/usermods/seven_segment_display_reloaded/usermod_seven_segment_reloaded.h index 7b89c8d7..2deb6338 100644 --- a/usermods/seven_segment_display_reloaded/usermod_seven_segment_reloaded.h +++ b/usermods/seven_segment_display_reloaded/usermod_seven_segment_reloaded.h @@ -86,7 +86,7 @@ private: static const char _str_minBrightness[]; static const char _str_maxBrightness[]; -#ifdef USERMOD_ID_SN_PHOTORESISTOR +#ifdef USERMOD_SN_PHOTORESISTOR Usermod_SN_Photoresistor *ptr; #else void* ptr = nullptr; @@ -371,7 +371,7 @@ public: } _setAllFalse(); - #ifdef USERMOD_ID_SN_PHOTORESISTOR + #ifdef USERMOD_SN_PHOTORESISTOR ptr = (Usermod_SN_Photoresistor*) usermods.lookup(USERMOD_ID_SN_PHOTORESISTOR); #endif DEBUG_PRINTLN(F("Setup done"));