| 26 | } |
| 27 | |
| 28 | static void IRAM_ATTR timer1Callback(void* arg) |
| 29 | { |
| 30 | System.queueCallback( |
| 31 | [](void* param) { |
| 32 | auto self = static_cast<CallbackTimerTest*>(param); |
| 33 | ++self->timer1.count; |
| 34 | Serial << self->timer1.count << _F(" timer1 expired") << endl; |
| 35 | if(self->timer1.count == 5) { |
| 36 | self->timer1.stop(); |
| 37 | self->timer1complete(); |
| 38 | } |
| 39 | }, |
| 40 | arg); |
| 41 | } |
| 42 | |
| 43 | void execute() override |
| 44 | { |
nothing calls this directly
no test coverage detected