#if defined(RF69_COMPAT)
volatile uint8_t* Data;
volatile uint8_t* DataLen;
#endif
If the RF69_COMPAT value is defined, Data and DataLen are created as private members of the class.
#if !defined(RF69_COMPAT) //don't hold the same values in COMPAT mode, so use the accessor functions
volatile uint8_t* Data;
volatile uint8_t* DataLen;
#endif
Otherwise, they are defined as public members of the class.
#define RF69_COMPAT 1
By default, the data is private.
Therefore, this:
[b] for (byte i = 0; i < *radio.DataLen; i++) //can also use radio.GetDataLen() if you don't like pointers[/b]
Serial.print((char)radio.Data[i]);
will not work, and you'll have to use the GetDataLen() and GetData() methods.
By the way, don't try to bold stuff in a code window.