Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
gemu2015 committed Nov 16, 2023
1 parent 610143a commit b46c088
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_audio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#if ESP8266 || (ESP_IDF_VERSION_MAJOR < 5)
#if (defined(USE_I2S_AUDIO) || defined(USE_TTGO_WATCH) || defined(USE_M5STACK_CORE2) || defined(ESP32S3_BOX))
/*********************************************************************************************\
* I2S support using an external DAC or a speaker connected to GPIO03 using a transistor
Expand Down Expand Up @@ -764,4 +764,5 @@ bool Xdrv42(uint32_t function) {
return result;
}

#endif // USE_I2S_AUDIO
#endif // USE_I2S_AUDIO
#endif // ESP8266 || (ESP_IDF_VERSION_MAJOR < 5)
4 changes: 2 additions & 2 deletions tasmota/tasmota_xdrv_driver/xdrv_42_1_i2s_mp3mic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/


#ifdef ESP32
#if ESP32 && (ESP_IDF_VERSION_MAJOR < 5)
#if ( (defined(USE_I2S_AUDIO) && defined(USE_I2S_MIC)) || defined(USE_M5STACK_CORE2) || defined(ESP32S3_BOX) )

uint32_t SpeakerMic(uint8_t spkr) {
Expand Down Expand Up @@ -332,4 +332,4 @@ void Cmd_MicGain(void) {
}

#endif // USE_I2S_AUDIO
#endif // ESP32
#endif // ESP32 && (ESP_IDF_VERSION_MAJOR < 5)

0 comments on commit b46c088

Please sign in to comment.