[RF69] Renamed TRNG method

This commit is contained in:
jgromes 2021-07-18 10:18:35 +02:00
parent c470809f92
commit cb1d79621d
2 changed files with 3 additions and 2 deletions

View file

@ -846,9 +846,10 @@ void CC1101::setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn) {
_mod->setRfSwitchPins(rxEn, txEn);
}
uint8_t CC1101::random() {
uint8_t CC1101::randomByte() {
// set mode to Rx
SPIsendCommand(CC1101_CMD_RX);
RADIOLIB_DEBUG_PRINTLN("random");
// wait a bit for the RSSI reading to stabilise
Module::delay(10);

View file

@ -888,7 +888,7 @@ class CC1101: public PhysicalLayer {
\returns TRNG byte.
*/
uint8_t random();
uint8_t randomByte();
/*!
\brief Read version SPI register. Should return CC1101_VERSION_LEGACY (0x04) or CC1101_VERSION_CURRENT (0x14) if CC1101 is connected and working.