* @brief Repeating callback for iteration testing * * Uses static counter to track execution number, enabling verification * of proper iteration counting and repeated execution behavior. */
| 305 | * of proper iteration counting and repeated execution behavior. |
| 306 | */ |
| 307 | void repeating_callback() { |
| 308 | static int counter = 0; |
| 309 | counter++; |
| 310 | test_output.push_back("Repeating task #" + std::to_string(counter)); |
| 311 | std::cout << "Repeating task #" << counter << " executed at " << millis() << "ms" << std::endl; |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * @brief Callback for yield switching tests |