Fixed a conflict with return brackets.
This commit is contained in:
parent
b8b05262bc
commit
5acaf1dfb6
2 changed files with 3 additions and 1 deletions
|
@ -119,4 +119,4 @@ int16_t SX1262::setOutputPower(int8_t power) {
|
|||
|
||||
// restore OCP configuration
|
||||
return(writeRegister(SX126X_REG_OCP_CONFIGURATION, &ocp, 1));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue