diff --git a/src/OT/OT.h b/src/OT/OT.h index ba416df..cddd80c 100644 --- a/src/OT/OT.h +++ b/src/OT/OT.h @@ -84,7 +84,7 @@ #define GPIO_LEFT 13 #define GPIO_RIGHT 15 #define GPIO_KEYER 16 -#define GPIO_COOLER 19 +#define GPIO_COOLER 24 #define GPIO_AUX 20 #define GPIO_PA 21 #define GPIO_CLK 17 diff --git a/src/lib/genVFO.h b/src/lib/genVFO.h index 5b515b6..f34a587 100755 --- a/src/lib/genVFO.h +++ b/src/lib/genVFO.h @@ -115,6 +115,8 @@ class genVFO void setStep(byte v,byte s); void setStep(byte s); + byte getStep(byte v); + byte getStep(); void vfo2str(byte v,char* b); void code2mode(byte m,char* s); @@ -429,6 +431,17 @@ byte S=0x00; //*--------------------------------------------------------------------------------------------------- //* CLASS Implementation //*--------------------------------------------------------------------------------------------------- +byte genVFO::getStep(byte v) { + if (v!=VFOA && v!=VFOB) { + return 3; + } + return step[v]; +} +//*------- +byte genVFO::getStep(){ + return this->getStep(this->vfo); +} +//*------- void genVFO::setStep(byte v, byte s) { byte S=0x00;