Skip to content

Commit 4811ae5

Browse files
committed
Disable the Memory menu timeout
1 parent ca60224 commit 4811ae5

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

ats-mini/Menu.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,10 +715,13 @@ static void clickMemory(uint8_t idx, bool shortPress)
715715
// Must have a valid index
716716
if(idx>LAST_ITEM(memories)) return;
717717

718-
// If clicking on an empty memory slot, save to it
719-
if(!memories[idx].freq) memories[idx] = newMemory;
720-
// On a press, delete memory slot contents
721-
else if(shortPress) memories[idx].freq = 0;
718+
if(shortPress)
719+
{
720+
// If clicking on an empty memory slot, save to it
721+
if(!memories[idx].freq) memories[idx] = newMemory;
722+
// Otherwise, delete memory slot contents
723+
else memories[idx].freq = 0;
724+
}
722725
// On a click, do nothing, slot already activated in doMemory()
723726
else currentCmd = CMD_NONE;
724727
}

ats-mini/ats-mini.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ void loop()
888888
// Disable commands control
889889
if((currentTime - elapsedCommand) > ELAPSED_COMMAND)
890890
{
891-
if(currentCmd != CMD_NONE && currentCmd != CMD_SEEK && currentCmd != CMD_SCAN)
891+
if(currentCmd != CMD_NONE && currentCmd != CMD_SEEK && currentCmd != CMD_SCAN && currentCmd != CMD_MEMORY)
892892
{
893893
currentCmd = CMD_NONE;
894894
needRedraw = true;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable the Memory menu timeout (it is a surfing mode like Seek or Scan). Short press (0.5 sec) saves/clears a slot, click closes the menu.

docs/source/manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The menu can be invoked by clicking the encoder button and is closed automatical
5656
* **Step** - Tuning step (not every step is available on every band and mode).
5757
* **Seek** - Scan up or down on AM/FM, faster tuning on LSB/USB (hardware seek function is not supported by SI4732 on SSB). Rotate or click the encoder to stop the scan. Use short press to switch between the scan and [schedule](#schedule) modes. Use press and rotate for manual fine tuning.
5858
* **Scan** - Scan a frequency range and plot the RSSI (S) and SNR (N) graphs (unfortunately, these metrics are almost meaningless in SSB modes due to SI4732 patch limitations). Both graphs are normalized to 0.0 - 1.0 range. While the Scan mode is active, short press the encoder for 0.5 seconds to rescan, press & rotate to tune using a larger step. To abort a running scan process click or rotate the encoder.
59-
* **Memory** - 99 slots to store favorite frequencies. Click `Add` on an empty slot to store the current frequency, short press to erase a slot, switch between stored slots by rotating the encoder. It is also possible to edit the memory slots via [serial port](#serial-interface) or via the [web based tool](memory.md) in Google Chrome.
59+
* **Memory** - 99 slots to store favorite frequencies. Short press on an empty slot to store the current frequency, short press to erase a slot, switch between stored slots by rotating the encoder, click to exit the menu. It is also possible to edit the memory slots via [serial port](#serial-interface) or via the [web based tool](memory.md) in Google Chrome.
6060
* **Squelch** - mute the speaker when the RSSI level is lower than the defined threshold. Unlikely to work in SSB mode. To turn it off quickly, short press the encoder button while in the Squelch menu mode.
6161
* **Bandwidth** - Selects the bandwidth of the channel filter.
6262
* **AGC/ATTN** - Automatic Gain Control (on/off) or Attenuation level. The attenuator is not applicable to SSB mode.

0 commit comments

Comments
 (0)