From 513f56fe7dbf0fa8e6a075c22e138c908a01d33f Mon Sep 17 00:00:00 2001 From: Razvalyaev Date: Mon, 17 Nov 2025 12:36:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=B5=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BD=D0=B0=20Filter=5FReInit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyLibs/Inc/filters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MyLibs/Inc/filters.h b/MyLibs/Inc/filters.h index 824f39f..964690e 100644 --- a/MyLibs/Inc/filters.h +++ b/MyLibs/Inc/filters.h @@ -129,8 +129,8 @@ int32_t process_value_int(int32_t raw_adc_quant) { * @param filter Указатель на структуру фильтра * @details Запускает функцию инициализации, если указатель инициализирован */ -#define Filter_ReInit(_fltr_, _input_) \ -((_fltr_)->reset != NULL) ? (_fltr_)->reset(_fltr_, _input_): -1 +#define Filter_ReInit(_fltr_, ...) \ +((_fltr_)->reset != NULL) ? (_fltr_)->reset(_fltr_, __VA_ARGS__): -1 /**