From 1bea04a2ed9f0ee047e50102f3eccfcf7ac592ae Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 10 Apr 2020 15:49:44 -0400 Subject: [PATCH] I got distracted as usual :( --- firmware/controllers/core/fsio_impl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/core/fsio_impl.cpp b/firmware/controllers/core/fsio_impl.cpp index 8d8edcddfb..27f985b880 100644 --- a/firmware/controllers/core/fsio_impl.cpp +++ b/firmware/controllers/core/fsio_impl.cpp @@ -569,8 +569,11 @@ static void showFsioInfo(void) { * in case of FSIO user interface indexes are starting with 0, the argument for that * is the fact that the target audience is more software developers */ - scheduleMsg(logger, "FSIO #%d [%s] at %s@%dHz value=%.2f", (i + 1), exp, - hwPortname(CONFIG(fsioOutputPins)[i]), CONFIG(fsioFrequency)[i], + int freq = CONFIG(fsioFrequency)[i]; + const char *modeMessage = freq == 0 ? " (on/off mode)" : ""; + scheduleMsg(logger, "FSIO #%d [%s] at %s@%dHz%s value=%.2f", (i + 1), exp, + hwPortname(CONFIG(fsioOutputPins)[i]), + freq, modeMessage, engine->fsioState.fsioLastValue[i]); // scheduleMsg(logger, "user-defined #%d value=%.2f", i, engine->engineConfigurationPtr2->fsioLastValue[i]); showFsio(NULL, state.fsioLogics[i]);