Send and receive data MPU6050 + NRFL2401

Dear all,
I have just started a project to send data from MPU6050 using nRF24L01 and arduino Uno.
For the receiver i used a nRF24L01 with an Arduino Uno, and this is my code after modifying : nRF24_Arduino_as_hub.
but I don’t know why I cannot compile with the error : void value not ignored as it ought to be.
Can anyone help for me this problem. Thanks alot !

/*-----( Import needed libraries )-----*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(8,9);
const uint64_t pipe = 0xE8E8F0F0E1LL;
char euler_send[3];

void setup()   /****** SETUP: RUNS ONCE ******/
{
  Serial.begin(9600);
  delay(1000);
  Serial.println("Nrf24L01 Receiver Starting");
  radio.begin();
  radio.openReadingPipe(1,pipe);
  radio.startListening();;
}//--(end setup )---


void loop(void)
{ 
    char receivePayload[31];
    uint8_t len = 0;
    uint8_t pipe = 0;
        
        
    // Loop thru the pipes 0 to 5 and check for payloads    
    if ( radio.available( &pipe ) ) {
      bool done = false;
      while (!done)
      {
        len = radio.getDynamicPayloadSize();  
        done = radio.read( &receivePayload,len );
        
        // Sending back reply to sender using the same pipe
        radio.stopListening();
        //radio.openWritingPipe(pipes[pipe]);
        radio.write(receivePayload,len);
        
        // Format string for printing ending with 0
        receivePayload[len] = 0;
        printf("Got payload: %s len:%i pipe:%i\n\r",receivePayload,len,pipe);
      }
    }
    delay(20);
}