mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
fix audio missing stop
This commit is contained in:
parent
e489aa8107
commit
dc2d1dc025
@ -93,9 +93,15 @@ AudioGeneratorTalkie *talkie = nullptr;
|
|||||||
#undef TWATCH_DAC_IIS_BCK
|
#undef TWATCH_DAC_IIS_BCK
|
||||||
#undef TWATCH_DAC_IIS_WS
|
#undef TWATCH_DAC_IIS_WS
|
||||||
#undef TWATCH_DAC_IIS_DOUT
|
#undef TWATCH_DAC_IIS_DOUT
|
||||||
|
#ifndef TWATCH_DAC_IIS_BCK
|
||||||
#define TWATCH_DAC_IIS_BCK 26
|
#define TWATCH_DAC_IIS_BCK 26
|
||||||
|
#endif
|
||||||
|
#ifndef TWATCH_DAC_IIS_WS
|
||||||
#define TWATCH_DAC_IIS_WS 25
|
#define TWATCH_DAC_IIS_WS 25
|
||||||
|
#endif
|
||||||
|
#ifndef TWATCH_DAC_IIS_DOUT
|
||||||
#define TWATCH_DAC_IIS_DOUT 33
|
#define TWATCH_DAC_IIS_DOUT 33
|
||||||
|
#endif
|
||||||
#endif // ESP32
|
#endif // ESP32
|
||||||
|
|
||||||
#ifdef SAY_TIME
|
#ifdef SAY_TIME
|
||||||
@ -191,6 +197,7 @@ void sayTime(int hour, int minutes, AudioGeneratorTalkie *talkie) {
|
|||||||
talkie->say(spA_M_, sizeof(spA_M_));
|
talkie->say(spA_M_, sizeof(spA_M_));
|
||||||
}
|
}
|
||||||
delete talkie;
|
delete talkie;
|
||||||
|
out->stop();
|
||||||
TTGO_PWR_OFF
|
TTGO_PWR_OFF
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user