fix default args, scoping
This commit is contained in:
parent
07429986c2
commit
8d2c98339f
2 changed files with 3 additions and 3 deletions
|
@ -1187,12 +1187,12 @@ uint32_t SX126x::getTimeOnAir(size_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
void implicitHeader(size_t len) {
|
||||
void SX126x::implicitHeader(size_t len) {
|
||||
_headerType = SX126X_LORA_HEADER_IMPLICIT;
|
||||
_implicitLen = len;
|
||||
}
|
||||
|
||||
void explicitHeader() {
|
||||
void SX126x::explicitHeader() {
|
||||
_headerType = SX126X_LORA_HEADER_EXPLICIT;
|
||||
_implicitLen = 0xFF;
|
||||
}
|
||||
|
|
|
@ -826,7 +826,7 @@ class SX126x: public PhysicalLayer {
|
|||
int16_t setTxParams(uint8_t power, uint8_t rampTime = SX126X_PA_RAMP_200U);
|
||||
int16_t setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr, uint8_t ldro = 0xFF);
|
||||
int16_t setModulationParamsFSK(uint32_t br, uint8_t pulseShape, uint8_t rxBw, uint32_t freqDev);
|
||||
int16_t setPacketParams(uint16_t preambleLength, uint8_t crcType, uint8_t payloadLength = 0xFF, uint8_t headerType, uint8_t invertIQ = SX126X_LORA_IQ_STANDARD);
|
||||
int16_t setPacketParams(uint16_t preambleLength, uint8_t crcType, uint8_t payloadLength, uint8_t headerType, uint8_t invertIQ = SX126X_LORA_IQ_STANDARD);
|
||||
int16_t setPacketParamsFSK(uint16_t preambleLength, uint8_t crcType, uint8_t syncWordLength, uint8_t addrComp, uint8_t whitening, uint8_t packetType = SX126X_GFSK_PACKET_VARIABLE, uint8_t payloadLength = 0xFF, uint8_t preambleDetectorLength = SX126X_GFSK_PREAMBLE_DETECT_16);
|
||||
int16_t setBufferBaseAddress(uint8_t txBaseAddress = 0x00, uint8_t rxBaseAddress = 0x00);
|
||||
uint8_t getStatus();
|
||||
|
|
Loading…
Add table
Reference in a new issue