* @brief Callback for testing repeating task functionality * * Uses static counter to track execution number, enabling verification * of proper iteration counting and repeated execution behavior. * Critical for testing tasks with limited iteration counts and infinite tasks. */
| 67 | * Critical for testing tasks with limited iteration counts and infinite tasks. |
| 68 | */ |
| 69 | void repeating_callback() { |
| 70 | static int counter = 0; |
| 71 | counter++; |
| 72 | test_output.push_back("Repeating task #" + std::to_string(counter)); |
| 73 | std::cout << "Repeating task #" << counter << " executed at " << millis() << "ms" << std::endl; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * @brief Test fixture class for TaskScheduler unit tests |