A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
disable at cmd and pcm sound for m5stick, no more flash space left
Geo3040ed1aabff
diff --git a/src/Controllers/I2sController.cpp b/src/Controllers/I2sController.cppindex a1fb1a20..cf84bd30 100644--- a/src/Controllers/I2sController.cpp+++ b/src/Controllers/I2sController.cpp@@ -232,28 +232,32 @@ void I2sController::handleTestSpeaker() {}delay(800);- // 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()- );-+ #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+terminalView.println("\nI2S Speaker Test: Done.");}diff --git a/src/Controllers/UartController.cpp b/src/Controllers/UartController.cppindex 94fbf177..2e0e6e3f 100644--- a/src/Controllers/UartController.cpp+++ b/src/Controllers/UartController.cpp@@ -116,7 +116,13 @@ void UartController::handleRead() {AT Command shell*/void UartController::handleAtCommand(const TerminalCommand& cmd) {- uartAtShell.run();+ #ifdef DEVICE_M5STICK+ terminalView.println("UART AT: No flash space available on M5Stick for AT command shell.");+ return;++ #else+ uartAtShell.run();+ #endif}/*