Skip to content

Commit

Permalink
forgotten safety check (#21549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars committed Jun 3, 2024
1 parent 2d33a77 commit 7b678ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_audio_idf51.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,10 @@ void CmndI2SI2SRtttl(void) {
}

void CmndI2SMicRec(void) {
if (I2SPrepareRx()) {
ResponseCmndChar("I2S Mic not configured");
return;
}
if (audio_i2s_mp3.mp3ram == nullptr){
AddLog(LOG_LEVEL_DEBUG,PSTR("I2S: try late buffer allocation for mp3 encoder"));
audio_i2s_mp3.mp3ram = special_malloc(preallocateCodecSize);
Expand Down

0 comments on commit 7b678ba

Please sign in to comment.