Skip to content

Commit

Permalink
Update TaskManager.h and TaskManager.cpp to avoid watchdogTimeOutFlag…
Browse files Browse the repository at this point in the history
… overflow (#13)

* Update TaskManager.cpp

* Update TaskManager.h
  • Loading branch information
kuthullu authored and Makuna committed Jun 11, 2016
1 parent 7a3867d commit fa207b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ TaskState TaskManager::StatusTask(Task* pTask)
return pTask->_taskState;
}

void TaskManager::Loop(uint8_t watchdogTimeOutFlag)
void TaskManager::Loop(uint16_t watchdogTimeOutFlag)
{
uint32_t currentTick = GetTaskTime();
uint32_t deltaTime = currentTick - _lastTick;
Expand Down
2 changes: 1 addition & 1 deletion src/TaskManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TaskManager

void Setup();
// for esp8266, its always 3.2 seconds
void Loop(uint8_t watchdogTimeOutFlag = WDTO_500MS);
void Loop(uint16_t watchdogTimeOutFlag = WDTO_500MS);
void StartTask(Task* pTask);
void StopTask(Task* pTask);
TaskState StatusTask(Task* pTask);
Expand Down

0 comments on commit fa207b7

Please sign in to comment.