remove overloading of frequency function, now using frequency_float for subkhz frequency settings
This commit is contained in:
parent
373c584ae9
commit
220bd8aa28
|
@ -101,7 +101,7 @@ void program_pl_tx() {
|
||||||
long pl_tx = atof(pl_tx_buffer);
|
long pl_tx = atof(pl_tx_buffer);
|
||||||
Serial.print(" Which is FLOAT of ");
|
Serial.print(" Which is FLOAT of ");
|
||||||
Serial.println(pl_tx,DEC);
|
Serial.println(pl_tx,DEC);
|
||||||
radio.setCtcssEncoder(pl_tx);
|
radio.setCtcss(pl_tx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pl_tone_rx() {
|
void pl_tone_rx() {
|
||||||
|
@ -128,7 +128,7 @@ void program_pl_rx() {
|
||||||
long pl_rx = atof(pl_rx_buffer);
|
long pl_rx = atof(pl_rx_buffer);
|
||||||
Serial.print(" Which is FLOAT of ");
|
Serial.print(" Which is FLOAT of ");
|
||||||
Serial.println(pl_rx,DEC);
|
Serial.println(pl_rx,DEC);
|
||||||
radio.setCtcssDecoder(pl_rx);
|
radio.setCtcss(pl_rx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name=HamShield
|
name=HamShield
|
||||||
version=1.1.0
|
version=1.1.1
|
||||||
author=Morgan Redfield <morgan@enhancedradio.com>, Casey Halverson <casey@enhancedradio.com>
|
author=Morgan Redfield <morgan@enhancedradio.com>, Casey Halverson <casey@enhancedradio.com>
|
||||||
maintainer=Morgan Redfield <morgan@enhancedradio.com>
|
maintainer=Morgan Redfield <morgan@enhancedradio.com>
|
||||||
sentence=A library for use with HamShield by Enhanced Radio Devices.
|
sentence=A library for use with HamShield by Enhanced Radio Devices.
|
||||||
|
|
|
@ -1343,7 +1343,7 @@ bool HamShield::frequency(uint32_t freq_khz) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HamShield::frequency(float freq_khz) {
|
bool HamShield::frequency_float(float freq_khz) {
|
||||||
|
|
||||||
if((freq_khz >= 134000) && (freq_khz <= 174000)) {
|
if((freq_khz >= 134000) && (freq_khz <= 174000)) {
|
||||||
setTxBand2m();
|
setTxBand2m();
|
||||||
|
|
|
@ -245,7 +245,7 @@ class HamShield {
|
||||||
void safeMode();
|
void safeMode();
|
||||||
|
|
||||||
bool frequency(uint32_t freq_khz);
|
bool frequency(uint32_t freq_khz);
|
||||||
bool frequency(float freq_khz);
|
bool frequency_float(float freq_khz);
|
||||||
uint32_t getFrequency();
|
uint32_t getFrequency();
|
||||||
float getFrequency_float();
|
float getFrequency_float();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue