Open Karpesh opened 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
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;