mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
forgotten safety check (#21549)
This commit is contained in:
parent
2d33a77ba5
commit
7b678ba2c8
@ -1052,6 +1052,10 @@ void CmndI2SI2SRtttl(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CmndI2SMicRec(void) {
|
void CmndI2SMicRec(void) {
|
||||||
|
if (I2SPrepareRx()) {
|
||||||
|
ResponseCmndChar("I2S Mic not configured");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (audio_i2s_mp3.mp3ram == nullptr){
|
if (audio_i2s_mp3.mp3ram == nullptr){
|
||||||
AddLog(LOG_LEVEL_DEBUG,PSTR("I2S: try late buffer allocation for mp3 encoder"));
|
AddLog(LOG_LEVEL_DEBUG,PSTR("I2S: try late buffer allocation for mp3 encoder"));
|
||||||
audio_i2s_mp3.mp3ram = special_malloc(preallocateCodecSize);
|
audio_i2s_mp3.mp3ram = special_malloc(preallocateCodecSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user