From bedbf7bb947182734478e72c3ab84167b060413b Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 20 Aug 2022 19:01:24 +0200 Subject: [PATCH] [RFM9x] Fixed missing default argument for beginFSK (#553) --- src/modules/RFM9x/RFM95.h | 2 +- src/modules/RFM9x/RFM96.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/RFM9x/RFM95.h b/src/modules/RFM9x/RFM95.h index aa555103c..18d2a91eb 100644 --- a/src/modules/RFM9x/RFM95.h +++ b/src/modules/RFM9x/RFM95.h @@ -77,7 +77,7 @@ class RFM95: public SX1278 { \returns \ref status_codes */ - int16_t beginFSK(float freq, float br, float freqDev, float rxBw, int8_t power, uint16_t preambleLength, bool enableOOK); + int16_t beginFSK(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 125.0, int8_t power = 10, uint16_t preambleLength = 16, bool enableOOK = false); // configuration methods diff --git a/src/modules/RFM9x/RFM96.h b/src/modules/RFM9x/RFM96.h index 3c1d1f820..51bd481a0 100644 --- a/src/modules/RFM9x/RFM96.h +++ b/src/modules/RFM9x/RFM96.h @@ -77,7 +77,7 @@ class RFM96: public SX1278 { \returns \ref status_codes */ - int16_t beginFSK(float freq, float br, float freqDev, float rxBw, int8_t power, uint16_t preambleLength, bool enableOOK); + int16_t beginFSK(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 125.0, int8_t power = 10, uint16_t preambleLength = 16, bool enableOOK = false); // configuration methods