Browse Source

remove debugs and rename LOG* Constants

master
heck 8 months ago
parent
commit
99b283dabc
  1. 23
      src/main_osp.cc
  2. 9
      src/main_osp.hh

23
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;

9
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

Loading…
Cancel
Save