     if (receiver.isInertialAndMagGetReady() && receiver.isQuaternionGetReady()) {
       DrumSet drum = receiver.getDrum();
       if (drum.drumID > 0 && drum.strength > 0) {
-        if (receiver.detectPeak()) { 
+        if (receiver.detectPeak()) {
             // Use drum.drumID to get ID and drum.strength to get strength
             data = drum.drumID;
-            data = data + drum.strength << 4;
-            data = data + 0 << 8;
+            data = data + (drum.strength << 4);
+            data = data + (0 << 8);
+            Serial.println(data);
         }
       }
     }

  
  while(Mirf.isSending()){
  }
  Serial.println("Finished sending");
  delay(10);
  while(!Mirf.dataReady()){
    //Serial.println("Waiting");
    if ( ( millis() - time ) > 200 ) {

  Serial.println("Wrong data");
  }  
  delay(1);
  */
} 
  
  
