AP_Notify: MMLPlayer note_tab static const

This commit is contained in:
Jonathan Challinger 2018-07-24 19:01:59 -07:00 committed by Andrew Tridgell
parent 720676b28c
commit 98d962ffa2

View File

@ -215,7 +215,7 @@ void MMLPlayer::next_action()
case 'E': case 'E':
case 'F': case 'F':
case 'G': { case 'G': {
uint8_t note_tab[] = {9,11,0,2,4,5,7}; static const uint8_t note_tab[] = {9,11,0,2,4,5,7};
note = note_tab[c-'A'] + (_octave*12) + 1; note = note_tab[c-'A'] + (_octave*12) + 1;
c = next_char(); c = next_char();