 
 #ifdef USE_IR_EMITTER
 void sendIRPayload() {
+    // beep twice before transmitting.
+    beep(100);
+    delay(100);
+    beep(100);
     uint8_t check_sum = 2;
     Serial.write(2); // start of payload
     check_sum += channelIndex;

        drawScreen.screenSaver(pgm_read_byte_near(channelNames + channelIndex), pgm_read_word_near(channelFreqTable + channelIndex));
#endif
        do{
            //delay(10); // timeout delay
#ifdef USE_DIVERSITY
            drawScreen.updateScreenSaver(active_receiver, readRSSI(), readRSSI(useReceiverA), readRSSI(useReceiverB));
#else
            drawScreen.updateScreenSaver(readRSSI());
#endif

        }

        if(state == STATE_MANUAL) // MANUAL MODE
        {
#ifdef USE_IR_EMITTER
            if(time_next_payload+1000 < millis() && rssi <= 20) { // send channel info every second until rssi is locked.
                sendIRPayload();
                time_next_payload = millis();
            }
#endif
            // handling of keys
