From 1a4f739379acfb9d1d2eeea387fdd57f26a8e36f Mon Sep 17 00:00:00 2001 From: Kevin <68612569+diyelectromusic@users.noreply.github.com> Date: Sat, 23 Mar 2024 10:28:51 -0700 Subject: [PATCH] Additional logging for UI buttons --- src/uibuttons.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/uibuttons.cpp b/src/uibuttons.cpp index 0e361ae..122f598 100644 --- a/src/uibuttons.cpp +++ b/src/uibuttons.cpp @@ -238,7 +238,7 @@ CUIButton::BtnEvent CUIButton::Read (void) { CUIButton::BtnTrigger CUIButton::triggerTypeFromString(const char* triggerString) { - if (strcmp(triggerString, "") == 0 || strcmp(triggerString, "none") == 0) { + if (strcmp(triggerString, "") == 0 || strcmp(triggerString, "none") == 0 || strcmp(triggerString, "0") == 0) { return BtnTriggerNone; } else if (strcmp(triggerString, "click") == 0) { @@ -413,7 +413,9 @@ boolean CUIButtons::Initialize (void) // events assigned to them for (unsigned i=0; i