     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);
         }
       }
     }

XimuReceiver receiver;
  
void setup(){
  Serial1.begin(57600);
  Serial.begin(28800);
  /*
   * Setup pins / SPI.

      
    }
  }
  
  unsigned long feedback;
  Mirf.getData((byte *) &feedback);
  if(feedback==data){
