diff --git a/firmware/controllers/algo/obd_error_codes.h b/firmware/controllers/algo/obd_error_codes.h index a09b02e331..ce9ab36feb 100644 --- a/firmware/controllers/algo/obd_error_codes.h +++ b/firmware/controllers/algo/obd_error_codes.h @@ -1736,7 +1736,7 @@ typedef enum { * Should not happen */ CUSTOM_OBD_SKIPPED_FUEL = 6046, - CUSTOM_OBD_SCH_REUSE = 6047, + CUSTOM_OBD_6047 = 6047, CUSTOM_OBD_PIN_CONFLICT = 6048, CUSTOM_OBD_LOW_FREQUENCY = 6049, diff --git a/firmware/controllers/system/event_queue.cpp b/firmware/controllers/system/event_queue.cpp index fc173ba5f2..bcff3d9f52 100644 --- a/firmware/controllers/system/event_queue.cpp +++ b/firmware/controllers/system/event_queue.cpp @@ -35,13 +35,10 @@ bool EventQueue::checkIfPending(scheduling_s *scheduling) { return assertNotInList(head, scheduling); } -bool EventQueue::insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) { - return insertTask(false, "*", scheduling, timeX, callback, param); -} /** * @return true if inserted into the head of the list */ -bool EventQueue::insertTask(const bool monitorReuse, const char *prefix, scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) { +bool EventQueue::insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) { #if EFI_UNIT_TEST || defined(__DOXYGEN__) assertListIsSorted(); #endif /* EFI_UNIT_TEST */ @@ -50,10 +47,6 @@ bool EventQueue::insertTask(const bool monitorReuse, const char *prefix, schedul // please note that simulator does not use this code at all - simulator uses signal_executor_sleep if (scheduling->isScheduled) { - if (monitorReuse) { - warning(CUSTOM_OBD_SCH_REUSE, "reuse [%s]", prefix); - } - #if EFI_UNIT_TEST || defined(__DOXYGEN__) printf("Already scheduled was %d\r\n", (int)scheduling->momentX); printf("Already scheduled now %d\r\n", (int)timeX); diff --git a/firmware/controllers/system/event_queue.h b/firmware/controllers/system/event_queue.h index 7e59359102..32c6161f37 100644 --- a/firmware/controllers/system/event_queue.h +++ b/firmware/controllers/system/event_queue.h @@ -52,7 +52,6 @@ public: /** * O(size) - linear search in sorted linked list */ - bool insertTask(const bool monitorReuse, const char *prefix, scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param); bool insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param); int executeAll(efitime_t now); diff --git a/unit_tests/test_signal_executor.cpp b/unit_tests/test_signal_executor.cpp index b88e9793d7..75525f73e8 100644 --- a/unit_tests/test_signal_executor.cpp +++ b/unit_tests/test_signal_executor.cpp @@ -31,7 +31,7 @@ void scheduleByTime(const bool monitorReuse, const char *prefix, scheduling_s *s if (debugSignalExecutor) { printf("scheduleByTime %d\r\n", time); } - schedulingQueue.insertTask(false, prefix, scheduling, time, callback, param); + schedulingQueue.insertTask(scheduling, time, callback, param); } void initSignalExecutorImpl(void) {