mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 06:47:17 +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_WS
|
||||
#undef TWATCH_DAC_IIS_DOUT
|
||||
#ifndef TWATCH_DAC_IIS_BCK
|
||||
#define TWATCH_DAC_IIS_BCK 26
|
||||
#endif
|
||||
#ifndef TWATCH_DAC_IIS_WS
|
||||
#define TWATCH_DAC_IIS_WS 25
|
||||
#endif
|
||||
#ifndef TWATCH_DAC_IIS_DOUT
|
||||
#define TWATCH_DAC_IIS_DOUT 33
|
||||
#endif
|
||||
#endif // ESP32
|
||||
|
||||
#ifdef SAY_TIME
|
||||
@ -191,6 +197,7 @@ void sayTime(int hour, int minutes, AudioGeneratorTalkie *talkie) {
|
||||
talkie->say(spA_M_, sizeof(spA_M_));
|
||||
}
|
||||
delete talkie;
|
||||
out->stop();
|
||||
TTGO_PWR_OFF
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user