Grove soundsensor lib
Diff: soundsensor.cpp
- Revision:
- 9:c38836e5d1f5
- Parent:
- 8:5b4b258eb1da
--- a/soundsensor.cpp Wed Jan 23 11:10:07 2019 +0000 +++ b/soundsensor.cpp Wed Jan 23 11:48:11 2019 +0000 @@ -73,7 +73,7 @@ */ float soundsensor::listen(bool toDb){ AnalogIn sensor(this->getPin()); - int values[] = {}; + int values[100 + 1]; float sum; float average;