kehribar / nrf24L01_plus

Portable nrf24L01+ library with auto acknowledgement and auto retransmission support.
292 stars 97 forks source link

nrf24L01_plus and AVR Studio 6 issue and solution #5

Open Karpesh opened 10 years ago

Karpesh commented 10 years ago

In AVR Studio 6 instead of the string

uint8_t payload_len;

needs

volatile uint8_t payload_len=1;

I spent two days to figure out it. In other cases the global variable "payload_len" didn't assign in function "nrf24_config".

Please pay attention that variants: volatile uint8_t payload_len; or volatile uint8_t payload_len=1; didn't work too!

only


volatile uint8_t payload_len=1;