aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-04-24 16:27:50 +0200
committerBad Diode <bd@badd10de.dev>2023-04-24 16:27:50 +0200
commit595cfc36afbe4192bf24b0a2f5c2f95e87e12295 (patch)
treeff8b440c86ae7e63a9d9aaaae3fc77f58b6e1d3a /src/main.c
parent0c9d588f5f91127333afbd209de20cbf15851516 (diff)
downloadstepper-595cfc36afbe4192bf24b0a2f5c2f95e87e12295.tar.gz
stepper-595cfc36afbe4192bf24b0a2f5c2f95e87e12295.zip
Fix potential recursive loop on interrupt
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0ab251d..3a1c1d7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,7 +28,7 @@ WITH REGARD TO THIS SOFTWARE.
28// + Allow pasting parameters if they have been copied. 28// + Allow pasting parameters if they have been copied.
29// - Draw the global params in grey if they haven't been adjusted or aren't 29// - Draw the global params in grey if they haven't been adjusted or aren't
30// currently selected. 30// currently selected.
31// - Draw missing cursor. 31// + Draw missing cursor.
32// + Per-octave note adjustment with Select + L/R on a trig. 32// + Per-octave note adjustment with Select + L/R on a trig.
33// + Transpose channel with SEL + L/R on channel select. 33// + Transpose channel with SEL + L/R on channel select.
34// - Pattern chaining for more than 1 queue and/or song mode. 34// - Pattern chaining for more than 1 queue and/or song mode.
@@ -47,7 +47,7 @@ WITH REGARD TO THIS SOFTWARE.
47#include "renderer_m0.c" 47#include "renderer_m0.c"
48#include "sequencer.c" 48#include "sequencer.c"
49 49
50#define PROF_ENABLE 1 50#define PROF_ENABLE 0
51#include "profiling.c" 51#include "profiling.c"
52 52
53void 53void
@@ -107,6 +107,10 @@ update(void) {
107 last_channel_loc = channel_selection_loc; 107 last_channel_loc = channel_selection_loc;
108 last_pattern_loc = pattern_selection_loc; 108 last_pattern_loc = pattern_selection_loc;
109 last_right_col_loc = right_col_selection_loc; 109 last_right_col_loc = right_col_selection_loc;
110 if (update_bpm) {
111 set_time(patterns[current_pattern].bpm);
112 update_bpm = false;
113 }
110} 114}
111 115
112int 116int