|
|
@ -371,8 +371,8 @@ namespace Heck { |
|
|
|
bool heartbeat_led_state{ false }; |
|
|
|
u32 heartbeat_systick_last{}; |
|
|
|
|
|
|
|
bool seq_recording_new{ false }; |
|
|
|
bool seq_recording_current{ false }; |
|
|
|
bool but_record_new{ false }; |
|
|
|
bool but_record_current{ false }; |
|
|
|
|
|
|
|
bool but_clear_new{ false }; |
|
|
|
bool but_clear_current{ false }; |
|
|
@ -421,15 +421,15 @@ namespace Heck { |
|
|
|
|
|
|
|
// REC
|
|
|
|
but_rec.Debounce(); |
|
|
|
seq_recording_new = but_rec.Pressed(); |
|
|
|
if (seq_recording_current != seq_recording_new) { |
|
|
|
seq_recording_current = seq_recording_new; |
|
|
|
if (seq_recording_current) { |
|
|
|
but_record_new = but_rec.Pressed(); |
|
|
|
if (but_record_current != but_record_new) { |
|
|
|
but_record_current = but_record_new; |
|
|
|
if (but_record_current) { |
|
|
|
hw.PrintLine("BUTTON RECORD ON"); |
|
|
|
} else { |
|
|
|
hw.PrintLine("BUTTON RECORD OFF"); |
|
|
|
} |
|
|
|
sequencer.recording = seq_recording_current; |
|
|
|
sequencer.recording = but_record_current; |
|
|
|
} |
|
|
|
|
|
|
|
// CLEAR
|
|
|
|