Get rid of do-nothing functions
This commit is contained in:
parent
e7748d2878
commit
f541ff8928
@ -19,8 +19,6 @@ void displayChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t
|
|||||||
void displayText(const char *const text, int x1, int y1, int w, int h, int color, int background, int border, TextJustification_e justification = TextJustification_e::Center);
|
void displayText(const char *const text, int x1, int y1, int w, int h, int color, int background, int border, TextJustification_e justification = TextJustification_e::Center);
|
||||||
|
|
||||||
/* these functions are called universally to update the display */
|
/* these functions are called universally to update the display */
|
||||||
void updateDisplay(); //updates just the VFO frequency to show what is in 'frequency' variable
|
|
||||||
void redrawVFOs(); //redraws only the changed digits of the vfo
|
|
||||||
void drawTx();
|
void drawTx();
|
||||||
|
|
||||||
#define TEXT_LINE_HEIGHT 18
|
#define TEXT_LINE_HEIGHT 18
|
||||||
|
@ -189,5 +189,4 @@ void SetActiveVfoMode(VfoMode_e mode)
|
|||||||
else{
|
else{
|
||||||
globalSettings.vfoB.mode = mode;
|
globalSettings.vfoB.mode = mode;
|
||||||
}
|
}
|
||||||
redrawVFOs();
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ void switchVFO(Vfo_e new_vfo){
|
|||||||
|
|
||||||
globalSettings.activeVfo = new_vfo;
|
globalSettings.activeVfo = new_vfo;
|
||||||
setFrequency(GetActiveVfoFreq());
|
setFrequency(GetActiveVfoFreq());
|
||||||
redrawVFOs();
|
|
||||||
saveVFOs();
|
saveVFOs();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +193,6 @@ void ritDisable(){
|
|||||||
if(globalSettings.ritOn){
|
if(globalSettings.ritOn){
|
||||||
globalSettings.ritOn = false;
|
globalSettings.ritOn = false;
|
||||||
setFrequency(globalSettings.ritFrequency);
|
setFrequency(globalSettings.ritFrequency);
|
||||||
updateDisplay();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,6 @@ void processCatCommand(uint8_t* cmd) {
|
|||||||
{
|
{
|
||||||
uint32_t f = readFreq(cmd);
|
uint32_t f = readFreq(cmd);
|
||||||
setFrequency(f);
|
setFrequency(f);
|
||||||
updateDisplay();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,7 +319,6 @@ void processCatCommand(uint8_t* cmd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setFrequency(GetActiveVfoFreq());//Refresh frequency to get new mode to take effect
|
setFrequency(GetActiveVfoFreq());//Refresh frequency to get new mode to take effect
|
||||||
updateDisplay();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Ft817Command_e::PttOn:
|
case Ft817Command_e::PttOn:
|
||||||
@ -331,7 +329,6 @@ void processCatCommand(uint8_t* cmd) {
|
|||||||
else {
|
else {
|
||||||
response[0] = RACK;
|
response[0] = RACK;
|
||||||
}
|
}
|
||||||
updateDisplay();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Ft817Command_e::PttOff:
|
case Ft817Command_e::PttOff:
|
||||||
@ -342,7 +339,6 @@ void processCatCommand(uint8_t* cmd) {
|
|||||||
response[0] = RACK;
|
response[0] = RACK;
|
||||||
}
|
}
|
||||||
globalSettings.txCatActive = false;
|
globalSettings.txCatActive = false;
|
||||||
updateDisplay();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Ft817Command_e::VfoToggle:
|
case Ft817Command_e::VfoToggle:
|
||||||
@ -352,7 +348,6 @@ void processCatCommand(uint8_t* cmd) {
|
|||||||
else{
|
else{
|
||||||
globalSettings.activeVfo = Vfo_e::VFO_A;
|
globalSettings.activeVfo = Vfo_e::VFO_A;
|
||||||
}
|
}
|
||||||
updateDisplay();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Ft817Command_e::ReadEeprom:
|
case Ft817Command_e::ReadEeprom:
|
||||||
|
Loading…
Reference in New Issue
Block a user