From c7fb0653108d83e01badc322f651945207302307 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 29 Dec 2024 09:46:38 +0100 Subject: [PATCH] [CC1101] Simplify reset sequence --- src/modules/CC1101/CC1101.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 727d37e7..2d5f27ec 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -19,13 +19,7 @@ int16_t CC1101::beginFSK4(float freq, float br, float freqDev, float rxBw, int8_ } void CC1101::reset() { - // this is the manual power-on-reset sequence - this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelLow); - this->mod->hal->delayMicroseconds(5); - this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelHigh); - this->mod->hal->delayMicroseconds(40); - this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelLow); - this->mod->hal->delay(10); + // just send the command, the reset sequence as described in datasheet seems unnecessary in our usage SPIsendCommand(RADIOLIB_CC1101_CMD_RESET); }