Updates in memory channels
- Skipped channels will be skipped in memory tuning mode - You can now set a memory channel to skip bij entering edit mode and pressing the band button
This commit is contained in:
+31
-1
@@ -1342,6 +1342,17 @@ void ToggleBand(byte nowBand) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BANDBUTTONPress() {
|
void BANDBUTTONPress() {
|
||||||
|
if (memorystore) {
|
||||||
|
EEPROM.writeUInt((memorypos * 4) + EE_PRESETS_START, EE_PRESETS_FREQUENCY);
|
||||||
|
EEPROM.commit();
|
||||||
|
memory[memorypos] = EE_PRESETS_FREQUENCY;
|
||||||
|
memorystore = false;
|
||||||
|
ShowTuneMode();
|
||||||
|
if (memoryposstatus == MEM_DARK || memoryposstatus == MEM_EXIST) {
|
||||||
|
memoryposstatus = MEM_NORMAL;
|
||||||
|
ShowMemoryPos();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (!usesquelch) radio.setUnMute();
|
if (!usesquelch) radio.setUnMute();
|
||||||
if (afscreen) {
|
if (afscreen) {
|
||||||
BuildAdvancedRDS();
|
BuildAdvancedRDS();
|
||||||
@@ -1384,10 +1395,11 @@ void BANDBUTTONPress() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
while (digitalRead(BANDBUTTON) == LOW) delay(50);
|
while (digitalRead(BANDBUTTON) == LOW) delay(50);
|
||||||
delay(100);
|
delay(100);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void StoreFrequency() {
|
void StoreFrequency() {
|
||||||
EEPROM.writeUInt(EE_UINT16_FREQUENCY_FM, frequency);
|
EEPROM.writeUInt(EE_UINT16_FREQUENCY_FM, frequency);
|
||||||
@@ -2357,6 +2369,15 @@ void KeyUp() {
|
|||||||
case TUNE_MEM:
|
case TUNE_MEM:
|
||||||
memorypos++;
|
memorypos++;
|
||||||
if (memorypos > EE_PRESETS_CNT - 1) memorypos = 0;
|
if (memorypos > EE_PRESETS_CNT - 1) memorypos = 0;
|
||||||
|
if (!memorystore) {
|
||||||
|
while (IsStationEmpty()) {
|
||||||
|
memorypos++;
|
||||||
|
if (memorypos > EE_PRESETS_CNT - 1) {
|
||||||
|
memorypos = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!memorystore) {
|
if (!memorystore) {
|
||||||
DoMemoryPosTune();
|
DoMemoryPosTune();
|
||||||
} else {
|
} else {
|
||||||
@@ -2409,6 +2430,15 @@ void KeyDown() {
|
|||||||
case TUNE_MEM:
|
case TUNE_MEM:
|
||||||
memorypos--;
|
memorypos--;
|
||||||
if (memorypos > EE_PRESETS_CNT - 1) memorypos = EE_PRESETS_CNT - 1;
|
if (memorypos > EE_PRESETS_CNT - 1) memorypos = EE_PRESETS_CNT - 1;
|
||||||
|
if (!memorystore) {
|
||||||
|
while (IsStationEmpty()) {
|
||||||
|
memorypos--;
|
||||||
|
if (memorypos > EE_PRESETS_CNT - 1) {
|
||||||
|
memorypos = EE_PRESETS_CNT - 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!memorystore) {
|
if (!memorystore) {
|
||||||
DoMemoryPosTune();
|
DoMemoryPosTune();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user