From d2228af55fd22064021e63741fade3965deccac2 Mon Sep 17 00:00:00 2001 From: Adam Wonak Date: Fri, 4 Jul 2025 08:22:25 -0700 Subject: [PATCH] bug fix: must have curly braces when declaring new variables inside CASE statement. --- examples/Gravity/Gravity.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Gravity/Gravity.ino b/examples/Gravity/Gravity.ino index 755d8ea..d153253 100644 --- a/examples/Gravity/Gravity.ino +++ b/examples/Gravity/Gravity.ino @@ -232,13 +232,14 @@ void editMainParameter(int val) { gravity.clock.SetSource(app.selected_source); break; } - case PARAM_MAIN_PULSE: + case PARAM_MAIN_PULSE: { byte pulse = static_cast(app.selected_pulse); updateSelection(pulse, val, Clock::PULSE_LAST); app.selected_pulse = static_cast(pulse); if (app.selected_pulse == Clock::PULSE_NONE) { gravity.pulse.Low(); } + } case PARAM_MAIN_ENCODER_DIR: updateSelection(app.selected_sub_param, val, 2); break;