File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2424
2525#include " utility/PDMDoubleBuffer.h"
2626
27+ #ifdef ARDUINO_NICLA_VISION
28+ #define IF_NOT_IMPLEMENTED __attribute__ ((error(" setGain() not implemented for this board" )))
29+ #else
30+ #define IF_NOT_IMPLEMENTED
31+ #endif
32+
2733class PDMClass
2834{
2935public:
@@ -40,7 +46,7 @@ class PDMClass
4046
4147 // PORTENTA_H7 min -12 max 51
4248 // NANO 33 BLE SENSe min 0 max 80
43- void setGain (int gain);
49+ void IF_NOT_IMPLEMENTED setGain (int gain);
4450 void setBufferSize (int bufferSize);
4551 size_t getBufferSize ();
4652
Original file line number Diff line number Diff line change @@ -103,10 +103,6 @@ void PDMClass::onReceive(void(*function)(void))
103103
104104void PDMClass::setGain (int gain)
105105{
106- _gain = gain;
107- if (_init == 1 ) {
108- py_audio_gain_set (gain);
109- }
110106}
111107
112108void PDMClass::setBufferSize (int bufferSize)
You can’t perform that action at this time.
0 commit comments