Added back in gcopeland's additional debugging info, with readable values.
This commit is contained in:
parent
8f17e63a22
commit
4c21ab6ad0
18
RF24.cpp
18
RF24.cpp
|
@ -294,17 +294,13 @@ void RF24::printDetails(void)
|
||||||
print_byte_register(PSTR("CONFIG"),CONFIG);
|
print_byte_register(PSTR("CONFIG"),CONFIG);
|
||||||
print_byte_register(PSTR("DYNPD/FEATURE"),DYNPD,2);
|
print_byte_register(PSTR("DYNPD/FEATURE"),DYNPD,2);
|
||||||
|
|
||||||
// These need to be merged in with the register printing scheme
|
const char * rf24_datarate_e_str[] = { "1MBPS", "2MBPS", "250KBPS" };
|
||||||
#if 0
|
const char * rf24_model_e_str[] = { "nRF24L01", "nRF24L01+" } ;
|
||||||
read_register(RF_SETUP,buffer,1);
|
const char * rf24_crclength_e_str[] = { "Disabled", "8 bits", "16 bits" } ;
|
||||||
printf_P(PSTR("RF_SETUP = 0x%02x (data rate: %d)\n\r"),*buffer,getDataRate());
|
|
||||||
printf_P(PSTR("Hardware; isPVariant: %d\n\r"),isPVariant());
|
printf_P(PSTR("Data Rate\t = %s\n\r"),rf24_datarate_e_str[getDataRate()]);
|
||||||
|
printf_P(PSTR("Model\t\t = %s\n\r"),rf24_model_e_str[isPVariant()]);
|
||||||
read_register(CONFIG,buffer,1);
|
printf_P(PSTR("CRC Length\t = %s\n\r"),rf24_crclength_e_str[getCRCLength()]);
|
||||||
printf_P(PSTR("CONFIG = 0x%02x (CRC enable: %d; CRC16: %d)\n\r"),
|
|
||||||
*buffer,(*buffer)&_BV(EN_CRC)?1:0,
|
|
||||||
(*buffer)&_BV(CRCO)?1:0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue