 		}
 		analogWrite(PIN_FADE, fadePWM);
 		
-		// Blink the non-fading LED when the start of a pulse is detected.
-		if (pulseDetector.isPulse()) {
-			digitalWrite(PIN_BLINK, HIGH);
-		} else {
-			digitalWrite(PIN_BLINK, LOW);
-		}
+		
 	}
 
 }

	
	if (role == role_ping_out)  
	{ //sender
		Serial.print('S');
		Serial.println(pulseDetector.getSignal());
		
		// If the ISR has seen a beat, print the per-beat information.
		if(QS){
			myData.BPM = pulseDetector.getBPM();
			myData.IBI = pulseDetector.getIBI();
			bool ok = radio.write( &myData, sizeof(myData) );
			QS = false;
		}

		while (radio.available()) {                          // While there is data ready
			radio.read( &myData, sizeof(myData) );             // Get the payload
		}
			Serial.println(myData.Pulse);
			// Blink the non-fading LED when the start of a pulse is detected.
			if (myData.Pulse){ //revise, state might be repeating 1111,00,111,0
				fadePWM = 255;  // start fading on the start of each beat.
				analogWrite(PIN_FADE, fadePWM);
				digitalWrite(PIN_BLINK, LOW);
			} 
			else {
				digitalWrite(PIN_BLINK, HIGH);
			}
			
			/*
			Serial.print('B');
			Serial.println(myData.BPM);
			Serial.print('Q');
			Serial.println(myData.IBI);
			if (myData.BPM>80)
				HIGHbpm();
			if (myData.BPM<78)
				LOWbpm();
			*/
		}
	
		// Coincidentally, fade the LED a bit.
