Skip to content

Commit e71d176

Browse files
Fixed issue with tone for high density devices
1 parent 2e54594 commit e71d176

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

STM32F1/cores/maple/tone.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ HardwareTimer TTimer1(1), TTimer2(2), TTimer3(3), TTimer4(4);
3434
#ifdef STM32_HIGH_DENSITY
3535
HardwareTimer TTimer5(5), TTimer6(6), TTimer7(7), TTimer8(8);
3636
#endif
37-
HardwareTimer *TTimer[4] {
38-
&TTimer1,&TTimer2,&TTimer3,&TTimer4
37+
3938
#ifdef STM32_HIGH_DENSITY
40-
,&TTimer5,&TTimer6,&TTimer7,&TTimer8
39+
HardwareTimer *TTimer[8] { &TTimer1,&TTimer2,&TTimer3,&TTimer4,&TTimer5,&TTimer6,&TTimer7,&TTimer8 };
40+
#else
41+
HardwareTimer *TTimer[4] { &TTimer1,&TTimer2,&TTimer3,&TTimer4 };
4142
#endif
42-
};
43+
4344

4445
uint8_t tone_force_channel = 0; // forced timer channel
4546
uint8_t tone_force_ntimer = 0; // forced timer

0 commit comments

Comments
 (0)