From bf41ec354eec7117591268be70b01e0bd876611c Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 8 Apr 2021 15:59:42 -0400 Subject: [PATCH] helping us trace CUSTOM_FSIO_STACK_SIZE --- firmware/controllers/core/fsio_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/core/fsio_core.cpp b/firmware/controllers/core/fsio_core.cpp index 4c0ee93fed..760f5bb13c 100644 --- a/firmware/controllers/core/fsio_core.cpp +++ b/firmware/controllers/core/fsio_core.cpp @@ -261,7 +261,7 @@ FsioResult LECalculator::processElement(const LEElement *element DECLARE_ENGINE_ float LECalculator::evaluate(const char * msg, float selfValue, const LEElement* element DECLARE_ENGINE_PARAMETER_SUFFIX) { if (!element) { - warning(CUSTOM_NO_FSIO, "no FSIO code"); + warning(CUSTOM_NO_FSIO, "%s no FSIO code", msg); return NAN; } @@ -293,7 +293,7 @@ float LECalculator::evaluate(const char * msg, float selfValue, const LEElement* // The stack should have exactly one element on it if (stack.size() != 1) { - warning(CUSTOM_FSIO_STACK_SIZE, "unexpected FSIO stack size at return: %d", stack.size()); + warning(CUSTOM_FSIO_STACK_SIZE, "%s unexpected FSIO stack size at return: %d", msg, stack.size()); return NAN; } return stack.pop();