Skip to content

Commit

Permalink
add ability get LDR value from other usermods (Aircoookie#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
derqurps authored Dec 11, 2021
1 parent d3f3595 commit 7d5e246
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usermods/SN_Photoresistor/usermod_sn_photoresistor.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ class Usermod_SN_Photoresistor : public Usermod
}
}

uint16_t getLastLDRValue()
{
return lastLDRValue;
}

void addToJsonInfo(JsonObject &root)
{
JsonObject user = root[F("u")];
Expand Down

0 comments on commit 7d5e246

Please sign in to comment.