Skip to content

Commit

Permalink
getTaskState (#24)
Browse files Browse the repository at this point in the history
clean up keywords
new version
  • Loading branch information
Makuna authored Jul 22, 2018
1 parent ef98db5 commit 0f3da1c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ TaskTimeToUs KEYWORD2
TASK_DECLARE_BEGIN KEYWORD2
TASK_DECLARE_FUNCTION KEYWORD2
TASK_DECLARE_END KEYWORD2
setTimeInterval KEYWORD2
getTimeInterval KEYWORD2
getTaskState KEYWORD2

#######################################
# Constants (LITERAL1)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/Makuna/Task.git"
},
"version": "1.1.5",
"version": "1.1.6",
"frameworks": "arduino",
"platforms": "*"
}
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Task by Makuna
version=1.1.5
version=1.1.6
author=Michael C. Miller ([email protected])
maintainer=Michael C. Miller ([email protected])
sentence=A library that makes creating complex mulitple task projects easy.
Expand Down
5 changes: 5 additions & 0 deletions src/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ class Task
return _timeInterval;
}

TaskState getTaskState()
{
return _taskState;
}

protected:
virtual bool OnStart() { return true; };
virtual void OnStop() {};
Expand Down

0 comments on commit 0f3da1c

Please sign in to comment.