cleanup period stuff for new scheduler

This commit is contained in:
geeksville
2020-02-21 10:20:47 -08:00
parent d4efb2c44c
commit a6b98bec1f
5 changed files with 14 additions and 7 deletions
+4 -1
View File
@@ -25,6 +25,9 @@ public:
/// call this from loop
virtual void loop();
/// Set a new period in msecs (can be called from doTask or elsewhere and the scheduler will cope)
void setPeriod(uint32_t p) { period = p; }
protected:
virtual uint32_t doTask() = 0;
virtual void doTask() = 0;
};