Speed up memory switching when SPI speed is set to auto
This commit is contained in:
+4
-4
@@ -2275,7 +2275,7 @@ void ModeButtonPress() {
|
|||||||
menuoption = ITEM1;
|
menuoption = ITEM1;
|
||||||
menupage = INDEX;
|
menupage = INDEX;
|
||||||
menuitem = 0;
|
menuitem = 0;
|
||||||
if (spispeed == 7) tft.setSPISpeed(30);
|
if (spispeed == 7) tft.setSPISpeed(40);
|
||||||
BuildMenu();
|
BuildMenu();
|
||||||
menu = true;
|
menu = true;
|
||||||
ScreensaverTimerSet(OFF);
|
ScreensaverTimerSet(OFF);
|
||||||
@@ -2321,7 +2321,6 @@ void ModeButtonPress() {
|
|||||||
menuoption = ITEM1;
|
menuoption = ITEM1;
|
||||||
menupage = INDEX;
|
menupage = INDEX;
|
||||||
menuitem = 0;
|
menuitem = 0;
|
||||||
if (spispeed == 7) tft.setSPISpeed(30);
|
|
||||||
BuildMenu();
|
BuildMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2780,6 +2779,8 @@ void ShowMemoryPos() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DoMemoryPosTune() {
|
void DoMemoryPosTune() {
|
||||||
|
if (spispeed == 7) tft.setSPISpeed(50);
|
||||||
|
|
||||||
// Process empty stations
|
// Process empty stations
|
||||||
if (IsStationEmpty()) {
|
if (IsStationEmpty()) {
|
||||||
memoryposstatus = MEM_DARK;
|
memoryposstatus = MEM_DARK;
|
||||||
@@ -2825,8 +2826,6 @@ void DoMemoryPosTune() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowFreq(0);
|
|
||||||
|
|
||||||
if (band == BAND_FM || band == BAND_OIRT) {
|
if (band == BAND_FM || band == BAND_OIRT) {
|
||||||
StereoToggle = presets[memorypos].ms;
|
StereoToggle = presets[memorypos].ms;
|
||||||
if (!StereoToggle) {
|
if (!StereoToggle) {
|
||||||
@@ -2880,6 +2879,7 @@ void DoMemoryPosTune() {
|
|||||||
BWtune = true;
|
BWtune = true;
|
||||||
memtune = true;
|
memtune = true;
|
||||||
memreset = true;
|
memreset = true;
|
||||||
|
ShowFreq(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowFreq(int mode) {
|
void ShowFreq(int mode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user