| 18 | } |
| 19 | |
| 20 | void PDM_Sensor::get_data(int sensorID, byte *data) { |
| 21 | if (sensorID != PDM_MIC) { |
| 22 | memset(data, 0, sizeof(int16_t) * AUDIO_STREAM_PACKAGE_SIZE); /////?????? |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | memcpy(data, _buffer, sizeof(int16_t) * AUDIO_STREAM_PACKAGE_SIZE); |
| 27 | } |
| 28 | |
| 29 | void PDM_Sensor::setBuffer(uint8_t * buffer) { |
| 30 | _buffer = buffer; |
nothing calls this directly
no outgoing calls
no test coverage detected