Skip to content

Commit 220bd8a

Browse files
author
morgan
committed
remove overloading of frequency function, now using frequency_float for subkhz frequency settings
1 parent 373c584 commit 220bd8a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/AppSerialController/AppSerialController.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void program_pl_tx() {
101101
long pl_tx = atof(pl_tx_buffer);
102102
Serial.print(" Which is FLOAT of ");
103103
Serial.println(pl_tx,DEC);
104-
radio.setCtcssEncoder(pl_tx);
104+
radio.setCtcss(pl_tx);
105105
}
106106

107107
void pl_tone_rx() {
@@ -128,7 +128,7 @@ void program_pl_rx() {
128128
long pl_rx = atof(pl_rx_buffer);
129129
Serial.print(" Which is FLOAT of ");
130130
Serial.println(pl_rx,DEC);
131-
radio.setCtcssDecoder(pl_rx);
131+
radio.setCtcss(pl_rx);
132132
}
133133

134134

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=HamShield
2-
version=1.1.0
2+
version=1.1.1
33
author=Morgan Redfield <morgan@enhancedradio.com>, Casey Halverson <casey@enhancedradio.com>
44
maintainer=Morgan Redfield <morgan@enhancedradio.com>
55
sentence=A library for use with HamShield by Enhanced Radio Devices.

src/HamShield.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ bool HamShield::frequency(uint32_t freq_khz) {
13431343
return false;
13441344
}
13451345

1346-
bool HamShield::frequency(float freq_khz) {
1346+
bool HamShield::frequency_float(float freq_khz) {
13471347

13481348
if((freq_khz >= 134000) && (freq_khz <= 174000)) {
13491349
setTxBand2m();

src/HamShield.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class HamShield {
245245
void safeMode();
246246

247247
bool frequency(uint32_t freq_khz);
248-
bool frequency(float freq_khz);
248+
bool frequency_float(float freq_khz);
249249
uint32_t getFrequency();
250250
float getFrequency_float();
251251

0 commit comments

Comments
 (0)