stm32f103-minimum/src/stm32_tone: remove unnecessary call to tone start()

The "info" structure was used non initialized and causing bad sounds at
boot. The start() function is anyway called later on when actually playing
sounds.
This commit is contained in:
Pierre-Olivier Vauboin 2020-05-05 17:07:20 +02:00 committed by patacongo
parent d9d2fc0d0a
commit c11325d061

View File

@ -101,7 +101,6 @@ int stm32_tone_setup(void)
{
static bool initialized = false;
struct pwm_lowerhalf_s *tone;
struct pwm_info_s info;
struct oneshot_lowerhalf_s *oneshot = NULL;
int ret;
@ -121,7 +120,6 @@ int stm32_tone_setup(void)
/* Initialize TONE PWM */
tone->ops->setup(tone);
tone->ops->start(tone, &info);
/* Initialize ONESHOT Timer */