Skip to content

Commit 2014220

Browse files
committed
BUGME: using default bishift from MiInfo
* TODO: discuss how to configure it!
1 parent cb69004 commit 2014220

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eloc610LowPowerPartition/src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,10 @@ void record(I2SSampler *input) {
669669

670670
gRecording=true;
671671
char fname[100];
672+
673+
//BUGME: this is very dirty: I2SMEMSSampler directly accesses global variable gbitShift
674+
// the high power partition uses gMicBitShift (WTF?) but its never set through config
675+
gbitShift=getMicInfo().MicBitShift.toInt();
672676

673677
input->start();
674678
gRealSampleRate=(int32_t)(i2s_get_clk(I2S_NUM_0));

0 commit comments

Comments
 (0)