| 12 | |
| 13 | |
| 14 | void t1Callback() { |
| 15 | Serial.print("t1: "); |
| 16 | Serial.println(millis()); |
| 17 | |
| 18 | if (t1.isFirstIteration()) { |
| 19 | runner.addTask(t3); |
| 20 | t3.enable(); |
| 21 | Serial.println("t1: enabled t3 and added to the chain"); |
| 22 | } |
| 23 | |
| 24 | if (t1.isLastIteration()) { |
| 25 | t3.disable(); |
| 26 | runner.deleteTask(t3); |
| 27 | t2.setInterval(500); |
| 28 | Serial.println("t1: disable t3 and delete it from the chain. t2 interval set to 500"); |
| 29 | } |
| 30 | } |
| 31 |
nothing calls this directly
no test coverage detected