     } else {
         playClearThresholdTones();
     }
+}
+// ----------------------------------------------------------------------------
+uint16_t setRssiMonitorDelay(uint16_t delay) {
+    return delay < MIN_RSSI_MONITOR_DELAY_CYCLES ? MIN_RSSI_MONITOR_DELAY_CYCLES : delay;
 }
 // ----------------------------------------------------------------------------
 uint16_t getFilteredRSSI() {

            case CONTROL_SET_FREQUENCY: // set frequency
                frequency = setModuleFrequency(HEX_TO_UINT16(&controlData[1]));
                addToSendQueue(SEND_FREQUENCY);
                isConfigured = 1;
                break;
        }

#define CONTROL_MONITOR_OFF     'v'
#define CONTROL_SET_SKIP_LAP0   'F'
#define CONTROL_GET_VOLTAGE     'Y'
#define CONTROL_GET_RSSI        'E'
#define CONTROL_GET_API_VERSION '#'
// input control byte constants for uint8 "set value" commands
#define CONTROL_SET_MIN_LAP     'L'
#define CONTROL_SET_CHANNEL     'H'
#define CONTROL_SET_BAND        'N'
// input control byte constants for uint16 "set value" commands
#define CONTROL_SET_FREQUENCY   'Q'
#define CONTROL_SET_MON_DELAY   'd'

// output id byte constants
#define RESPONSE_CHANNEL        'C'
