From 17eb7c560ec89c3c8dd9edc3bd233e1009bd7a1d Mon Sep 17 00:00:00 2001 From: Asbelos Date: Wed, 20 Apr 2022 09:10:27 +0100 Subject: [PATCH] fix weak ref to myFilter --- DCCEXParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 6c7518e..0d8b537 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -165,7 +165,7 @@ int16_t DCCEXParser::splitValues(int16_t result[MAX_COMMAND_PARAMS], const byte return parameterCount; } -extern __attribute__((weak)) FILTER_CALLBACK myFilter(); +extern __attribute__((weak)) void myFilter(Print * stream, byte & opcode, byte & paramCount, int16_t p[]); FILTER_CALLBACK DCCEXParser::filterCallback = myFilter; FILTER_CALLBACK DCCEXParser::filterRMFTCallback = 0; AT_COMMAND_CALLBACK DCCEXParser::atCommandCallback = 0;