Skip to content

Commit

Permalink
Merge pull request #3 from gelanchez/develop
Browse files Browse the repository at this point in the history
Initialize sensors values
  • Loading branch information
gelanchez authored Oct 24, 2020
2 parents 1cf1af7 + 70bb599 commit f28b519
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 f28b519

Please sign in to comment.