From cb1d79621ddd2c84867eefa94adca7ec0a898610 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 18 Jul 2021 10:18:35 +0200 Subject: [PATCH] [RF69] Renamed TRNG method --- src/modules/CC1101/CC1101.cpp | 3 ++- src/modules/CC1101/CC1101.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 55c09135..9fd00bce 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -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); diff --git a/src/modules/CC1101/CC1101.h b/src/modules/CC1101/CC1101.h index edfd7b14..c8452109 100644 --- a/src/modules/CC1101/CC1101.h +++ b/src/modules/CC1101/CC1101.h @@ -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.