Skip to content

Commit 7320f43

Browse files
committed
Remove the dynamic CPU freqency feature
1 parent 08eb9ce commit 7320f43

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ats-mini/ats-mini.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ void loop()
723723
// Periodically print status to serial
724724
remoteTickTime();
725725

726-
if(encCount) setCpuFrequencyMhz(240);
726+
// if(encCount && getCpuFrequencyMhz()!=240) setCpuFrequencyMhz(240);
727727

728728
// Receive and execute serial command
729729
if(Serial.available()>0)
@@ -887,7 +887,7 @@ void loop()
887887
// Disable commands control
888888
if((currentTime - elapsedCommand) > ELAPSED_COMMAND)
889889
{
890-
setCpuFrequencyMhz(80);
890+
// if(getCpuFrequencyMhz()!=80) setCpuFrequencyMhz(80);
891891
if(currentCmd != CMD_NONE && currentCmd != CMD_SEEK && currentCmd != CMD_SCAN && currentCmd != CMD_MEMORY)
892892
{
893893
currentCmd = CMD_NONE;

ats-mini/sketch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
profiles:
22
esp32s3-ospi:
33
# If you change this line, change it in build.yml as well
4-
fqbn: esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=8M,PSRAM=opi,CPUFreq=240,USBMode=hwcdc,FlashMode=qio,PartitionScheme=custom,DebugLevel=none
4+
fqbn: esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=8M,PSRAM=opi,CPUFreq=80,USBMode=hwcdc,FlashMode=qio,PartitionScheme=custom,DebugLevel=none
55
platforms:
66
- platform: esp32:esp32 (3.3.0)
77
libraries:
@@ -13,7 +13,7 @@ profiles:
1313

1414
esp32s3-qspi:
1515
# If you change this line, change it in build.yml as well
16-
fqbn: esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=8M,PSRAM=enabled,CPUFreq=240,USBMode=hwcdc,FlashMode=qio,PartitionScheme=custom,DebugLevel=none
16+
fqbn: esp32:esp32:esp32s3:CDCOnBoot=cdc,FlashSize=8M,PSRAM=enabled,CPUFreq=80,USBMode=hwcdc,FlashMode=qio,PartitionScheme=custom,DebugLevel=none
1717
platforms:
1818
- platform: esp32:esp32 (3.3.0)
1919
libraries:

changelog/244.removed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the dynamic CPU frequecy feature introduced in v2.31 (it caused sound artifacts when rotating the encoder).

0 commit comments

Comments
 (0)