error! (nRF24L01)

hello , when i execute this code , this error is appear , what’s the solution ?
(this is the received code)
(error : ISO C++ forbids comparison between pointer and integer [-fpermissive])

  • CONNECTIONS: nRF24L01 Modules See:

1 - GND
2 - VCC 3.3V !!! NOT 5V
3 - CE to Arduino pin 9
4 - CSN to Arduino pin 10
5 - SCK to Arduino pin 13
6 - MOSI to Arduino pin 11
7 - MISO to Arduino pin 12
8 - UNUSED

/-----( Import needed libraries )-----/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
/-----( Declare Constants and Pin Numbers )-----/
#define CE_PIN 9
#define CSN_PIN 10

// NOTE: the “LL” at the end of the constant is “LongLong” type
const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

/-----( Declare objects )-----/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
/-----( Declare Variables )-----/
int push[1]; //
int led=6;

void setup() /****** SETUP: RUNS ONCE ******/
{
Serial.begin(9600);
delay(1000);
pinMode(6,OUTPUT);
Serial.println(“Nrf24L01 Receiver Starting”);
radio.begin();
radio.openReadingPipe(1,pipe);
radio.startListening();;
}//–(end setup )—

void loop() /****** LOOP: RUNS CONSTANTLY ******/
{
if ( radio.available() )
{
// Read the data payload until we’ve received everything

// Fetch the data payload
radio.read( (void*)push, sizeof(push) );

if ( push ==1)
{
digitalWrite(6,HIGH);
}
else
(
digitalWrite(6,HIGH);
}

}
}//–(end main loop )—

/-----( Declare User-written Functions )-----/

//NONE
//( THE END )**

if ( push ==1)

should be

if ( push[0] ==1)

But there is no point in using an array with only 1 element.

thanks you ... the verifying process given me done...this code is for example only, i well use many element in this array :slight_smile: