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:
h3ndrik authored and Earle F. Philhower, III committed 2018-01-26 07:50:43 -08:00
1 parent b9f13a3161
commit f1916051ec
1 file changed
+1
+1
View File
@@ -29,6 +29,7 @@
AudioOutputI2S::AudioOutputI2S(int port, bool builtInDAC)
{
portNo = port;
i2sOn = false;
#ifdef ESP32
if (!i2sOn) {
i2s_config_t i2s_config_dac = {