Skip to content

Commit

Permalink
initialize member variables (earlephilhower#39)
Browse files Browse the repository at this point in the history
if AudioOutputI2S is instanciated in a function (like in the examples) the member variables are not initialized to a default value.
  • Loading branch information
h3ndrik authored and earlephilhower committed Jan 26, 2018
1 parent b9f13a3 commit f191605
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AudioOutputI2S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
AudioOutputI2S::AudioOutputI2S(int port, bool builtInDAC)
{
portNo = port;
i2sOn = false;
#ifdef ESP32
if (!i2sOn) {
i2s_config_t i2s_config_dac = {
Expand Down

0 comments on commit f191605

Please sign in to comment.