| 12 | class MainTask : public Task { |
| 13 | public: |
| 14 | MainTask(bool _enabled = false, unsigned long _interval = 0) : Task(_enabled, _interval) { |
| 15 | this->blinker = new Blinker(); |
| 16 | |
| 17 | network->setDelayCallback([this](unsigned int time) { |
| 18 | this->delay(time); |
| 19 | })->setYieldCallback([this]() { |
| 20 | this->yield(); |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | ~MainTask() { |
| 25 | delete this->blinker; |
nothing calls this directly
no test coverage detected