Skip to content

Commit

Permalink
Merge pull request #9 from danielbene/hotfix/values
Browse files Browse the repository at this point in the history
Hotfix/values
  • Loading branch information
danielbene authored May 6, 2020
2 parents 16c6063 + 7c28dcc commit 5329a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ESPPowerManager/ESPPowerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void ESPPowerManager::beginEDSMode(uint16_t checksumNumber, uint16_t sleepHours)
extendedDSData.cycleCounter += 1;

if (extendedDSData.cycleCounter > sleepHours) {
extendedDSData.cycleCounter = 0;
extendedDSData.cycleCounter = 1;
ESP.rtcUserMemoryWrite(DS_CYCLE_MEMORY_OFFSET, (uint32_t*)&extendedDSData, sizeof(extendedDSData));
return; // reached specified sleep count, let the jobs run
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ IPAddress subnet(255, 255, 255, 0); // subnet mask of the local network
IPAddress dns(1, 1, 1, 1); // DNS server address
*/

#define DRYNESS_ALARM_VALUE 500 // the higher the value, the dryer the soil (water ~300, air ~730)
#define DRYNESS_ALARM_VALUE 600 // the higher the value, the dryer the soil (water ~300, air ~730)
//#define SLEEP_USECS powerManager.MAX_SLEEP

ESPPowerManager powerManager(ssid, password, ip, gateway, subnet, dns);
Expand Down

0 comments on commit 5329a85

Please sign in to comment.