From 7d5e2466f0f98909393bc105aad2a29915b2831e Mon Sep 17 00:00:00 2001 From: Roman Reitschmied Date: Sun, 12 Dec 2021 00:31:54 +0100 Subject: [PATCH] add ability get LDR value from other usermods (#2408) --- usermods/SN_Photoresistor/usermod_sn_photoresistor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usermods/SN_Photoresistor/usermod_sn_photoresistor.h b/usermods/SN_Photoresistor/usermod_sn_photoresistor.h index 3b785fad..6a7e9f5a 100644 --- a/usermods/SN_Photoresistor/usermod_sn_photoresistor.h +++ b/usermods/SN_Photoresistor/usermod_sn_photoresistor.h @@ -123,6 +123,11 @@ public: } } + uint16_t getLastLDRValue() + { + return lastLDRValue; + } + void addToJsonInfo(JsonObject &root) { JsonObject user = root[F("u")];