From b3b522bae2e805fd91d8de86bfaff2eb5bab78eb Mon Sep 17 00:00:00 2001 From: William McPherson Date: Thu, 26 Dec 2019 01:37:21 +1100 Subject: [PATCH] Piano: Initialize m_note_on[] This was being read before initialization. --- Applications/Piano/PianoWidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Piano/PianoWidget.h b/Applications/Piano/PianoWidget.h index 6b3437b7819..57bbfc1c04f 100644 --- a/Applications/Piano/PianoWidget.h +++ b/Applications/Piano/PianoWidget.h @@ -62,7 +62,7 @@ private: #define note_count sizeof(note_frequency) / sizeof(double) - u8 m_note_on[note_count]; + u8 m_note_on[note_count] { 0 }; double m_power[note_count]; double m_sin_pos[note_count]; double m_square_pos[note_count];