From 99b283dabc135d61efde023979d45c5d0b927978 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 7 Nov 2024 01:24:09 +0100 Subject: [PATCH] remove debugs and rename LOG* Constants --- src/main_osp.cc | 23 ++--------------------- src/main_osp.hh | 9 ++++----- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/src/main_osp.cc b/src/main_osp.cc index a87adb2..e310585 100644 --- a/src/main_osp.cc +++ b/src/main_osp.cc @@ -140,7 +140,7 @@ namespace Heck::OSP { void midi_realtime_handler(const ld::MidiEvent& msg) { - if constexpr (Constants::Developer::LOG_MIDI_REALTIME) { + if constexpr (Constants::Developer::LOG_MIDI_UART_REALTIME) { logger_midi.push(msg); } switch (msg.srt_type) { @@ -233,7 +233,7 @@ namespace Heck::OSP { { while (midi.HasEvents()) { ld::MidiEvent msg = midi.PopEvent(); - if constexpr (Constants::Developer::LOG_MIDI_REALTIME) { + if constexpr (Constants::Developer::LOG_MIDI_UART_POLLING) { logger_midi.push(msg); } midi_dispatch(msg, false); @@ -349,12 +349,6 @@ namespace Heck::OSP { ld::DaisySeed::PrintLine("Entering MainLoop"); u32 uptime_ms{}; - int clock_time_new{}; - int clock_time_current{}; - - int clock_bar_new{}; - int clock_bar_current{}; - int clock_16n_new{}; int clock_16n_current{}; @@ -364,19 +358,6 @@ namespace Heck::OSP { while (1) { uptime_ms = ld::System::GetNow(); - clock_time_new = clock.tick_infinite(); - if (clock_time_current != clock_time_new) { - clock_time_current = clock_time_new; - } - - clock_bar_new = clock.count_bar(); - if (clock_bar_new != clock_bar_current) { - clock_bar_current = clock_bar_new; - if constexpr (Constants::Developer::LOG_CLOCK_BAR) { - ld::DaisySeed::PrintLine("Bar: %i", clock_bar_current); - } - } - clock_16n_new = clock.count_16n(); if (clock_16n_new != clock_16n_current) { clock_16n_current = clock_16n_new; diff --git a/src/main_osp.hh b/src/main_osp.hh index 76dadae..c6a48d2 100644 --- a/src/main_osp.hh +++ b/src/main_osp.hh @@ -30,17 +30,16 @@ namespace Heck::OSP { namespace Developer { constexpr bool LOG_BLOCKS_BOOT = true; - constexpr bool LOG_MIDI_REALTIME = false; - constexpr bool LOG_MIDI_NOTESANDCC = false; - constexpr bool LOG_CLOCK_BAR = false; + constexpr bool LOG_MIDI_UART_REALTIME = false; + constexpr bool LOG_MIDI_UART_POLLING = false; constexpr bool LOG_CLOCK_16N = false; } } // namespace Constants //Hardware extern ld::DaisySeed seed; - extern ld::Switch but_rec; - extern ld::Switch but_clear; +// extern ld::Switch but_rec; +// extern ld::Switch but_clear; } // namespace Heck