From 51ebadef67805fe2b48242bac1ab2f81cc984ac2 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 3 Oct 2026 09:07:13 +0100 Subject: [PATCH] Modified callback_timer. --- include/etl/callback_timer_interrupt.h | 2 -- test/test_callback_timer.cpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/etl/callback_timer_interrupt.h b/include/etl/callback_timer_interrupt.h index 1881f1e8..ffe246ff 100644 --- a/include/etl/callback_timer_interrupt.h +++ b/include/etl/callback_timer_interrupt.h @@ -328,8 +328,6 @@ namespace etl if (!active_list.empty()) { - const timer_data& timer = active_list.front(); - delta = active_list.front().delta; } diff --git a/test/test_callback_timer.cpp b/test/test_callback_timer.cpp index c087f560..959fd04a 100644 --- a/test/test_callback_timer.cpp +++ b/test/test_callback_timer.cpp @@ -83,7 +83,7 @@ namespace using event_callback_type = etl::icallback_timer::event_callback_type; - Object object; + Object object; etl::function_imv member_callback; etl::function_imv member_callback2; @@ -92,7 +92,7 @@ namespace { public: - uint32_t time_to_next; + uint32_t time_to_next; etl::timer::id::type next_timer_id; TimerTimeToNextTest() @@ -847,7 +847,7 @@ namespace timer_controller.start(id3); timer_controller.start(id2); - CHECK_EQUAL(9, timerTimeToNextTest.time_to_next); // The time to next should be the interval for id3. + CHECK_EQUAL(9, timerTimeToNextTest.time_to_next); // The time to next should be the interval for id3. CHECK_EQUAL(int(id3), int(timerTimeToNextTest.next_timer_id)); // The next timer should be id3. timer_controller.enable(true);