From 5acaf1dfb6e44be22692d93ec6617ad4ddb24a2d Mon Sep 17 00:00:00 2001 From: BarryPSmith Date: Wed, 13 Nov 2019 07:20:21 -0800 Subject: [PATCH] Fixed a conflict with return brackets. --- src/modules/SX1262.cpp | 2 +- src/modules/SX126x.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/SX1262.cpp b/src/modules/SX1262.cpp index a3b3ad47..75030e54 100644 --- a/src/modules/SX1262.cpp +++ b/src/modules/SX1262.cpp @@ -119,4 +119,4 @@ int16_t SX1262::setOutputPower(int8_t power) { // restore OCP configuration return(writeRegister(SX126X_REG_OCP_CONFIGURATION, &ocp, 1)); -} \ No newline at end of file +} diff --git a/src/modules/SX126x.h b/src/modules/SX126x.h index a73eb44d..70b46dad 100644 --- a/src/modules/SX126x.h +++ b/src/modules/SX126x.h @@ -772,6 +772,8 @@ class SX126x: public PhysicalLayer { int16_t config(uint8_t modem); + + // common low-level SPI interface int16_t SPIwriteCommand(uint8_t cmd, uint8_t* data, uint8_t numBytes, bool waitForBusy = true); int16_t SPIreadCommand(uint8_t cmd, uint8_t* data, uint8_t numBytes, bool waitForBusy = true);