   /* when nothing was received */
   if ( !Mirf.dataReady() ) return 1;
   byte b;
-  Mirf.getData( &b );
+  Mirf.getData( (byte *) b );
   /* according to our status we save the received byte and go to next state */
   switch ( rx_stat ) {
     case 0: rx_message.destination = b; rx_stat = 1; break;

  tx_message.checksum ^= tx_message.source;
  tx_message.checksum ^= tx_message.data;
  /* Send the data packet */
  Mirf.send( &tx_message.destination );
  Mirf.send( &tx_message.source );
  Mirf.send( &tx_message.data );
  Mirf.send( &tx_message.checksum );
  
  /* Wait for data to be transmitted */
  while ( Mirf.isSending() );

}

void loop() {
  //uint8_t button;
  //readButtons( &button );
  /* Wait for button to be pressed, TODO: implement interrupt */
  /*if ( button > NO_BUTTON ) {
    digitalWrite( 9, HIGH );
    delay(1000);
  }*/
  
  /* transmit and receive acknowledgement */
  transmitPacket();
  while( !Mirf.dataReady() );
  if ( timeoutReceive() == SUCCESS )
    Serial.println( "Verification received!" );
  
  /* don't freeze the MCU */
  delay( 100000 );
}

