Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

remove m5stickcplus2 flag to include I2S pcm test

Geofcc33d056778
diff --git a/src/Controllers/I2sController.cpp b/src/Controllers/I2sController.cpp
index cf84bd30..9323054c 100644
--- a/src/Controllers/I2sController.cpp
+++ b/src/Controllers/I2sController.cpp
@@ -232,31 +232,27 @@ void I2sController::handleTestSpeaker() {
}
delay(800);
- #ifndef DEVICE_M5STICK
- // No flash space on M5Stick for this
-
- // Config for PCM playback
- i2sService.configureOutput(
- state.getI2sBclkPin(),
- state.getI2sLrckPin(),
- state.getI2sDataPin(),
- 12000,
- 16
- );
-
- // PCM Playback test
- terminalView.println(" PCM playback...");
- i2sService.playPcm(PcmSoundtestComplete, sizeof(PcmSoundtestComplete));
-
- // Restaure config
- i2sService.configureOutput(
- state.getI2sBclkPin(),
- state.getI2sLrckPin(),
- state.getI2sDataPin(),
- state.getI2sSampleRate(),
- state.getI2sBitsPerSample()
- );
- #endif
+ // Config for PCM playback
+ i2sService.configureOutput(
+ state.getI2sBclkPin(),
+ state.getI2sLrckPin(),
+ state.getI2sDataPin(),
+ 12000,
+ 16
+ );
+
+ // PCM Playback test
+ terminalView.println(" PCM playback...");
+ i2sService.playPcm(PcmSoundtestComplete, sizeof(PcmSoundtestComplete));
+
+ // Restaure config
+ i2sService.configureOutput(
+ state.getI2sBclkPin(),
+ state.getI2sLrckPin(),
+ state.getI2sDataPin(),
+ state.getI2sSampleRate(),
+ state.getI2sBitsPerSample()
+ );
terminalView.println("\nI2S Speaker Test: Done.");
}