initialize member variables (#39)
if AudioOutputI2S is instanciated in a function (like in the examples) the member variables are not initialized to a default value.
This commit is contained in:
1 parent
b9f13a3161
commit
f1916051ec
1 file changed
+1
@@ -29,6 +29,7 @@
|
||||
AudioOutputI2S::AudioOutputI2S(int port, bool builtInDAC)
|
||||
{
|
||||
portNo = port;
|
||||
i2sOn = false;
|
||||
#ifdef ESP32
|
||||
if (!i2sOn) {
|
||||
i2s_config_t i2s_config_dac = {
|
||||
|
||||
Reference in new issue
Block a user