Skip to content

Commit

Permalink
Initialize sensors values
Browse files Browse the repository at this point in the history
  • Loading branch information
gelanchez committed Oct 24, 2020
1 parent f2da37c commit 70bb599
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/webserver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ void setup()

pinMode(Constants::ledPin, OUTPUT);

// First sensors reads to initialize values
for (int i = 0; i < 5; i++)
{
g_thermistor.read();
g_photoresistor.read();
}

/**
* @brief Connect to WiFi.
*/
Expand Down

0 comments on commit 70bb599

Please sign in to comment.