| 140 | OpenEarable open_earable; |
| 141 | |
| 142 | void OpenEarable::config_callback(SensorConfigurationPacket *config) { |
| 143 | if (config->sensorId == PDM_MIC) Recorder::config_callback(config); |
| 144 | else if (config->sensorId == BARO_TEMP) task_manager.begin(config->sampleRate, -1); |
| 145 | else if (config->sensorId == ACC_GYRO_MAG) task_manager.begin(-1, config->sampleRate); |
| 146 | else { |
| 147 | if (i2s_player.is_running()) { |
| 148 | i2s_player.stop(); |
| 149 | delay(1); |
| 150 | i2s_player.start(); |
| 151 | } |
| 152 | } |
| 153 | //else task_manager.begin(); |
| 154 | } |
| 155 | |
| 156 | #endif //EDGE_ML_EARABLE_EDGEML_EARABLE_H |
nothing calls this directly
no test coverage detected