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);
|
||||
|
||||
/* 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();
|
||||
|
||||
#define TEXT_LINE_HEIGHT 18
|
||||
|
@ -189,5 +189,4 @@ void SetActiveVfoMode(VfoMode_e mode)
|
||||
else{
|
||||
globalSettings.vfoB.mode = mode;
|
||||
}
|
||||
redrawVFOs();
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ void switchVFO(Vfo_e new_vfo){
|
||||
|
||||
globalSettings.activeVfo = new_vfo;
|
||||
setFrequency(GetActiveVfoFreq());
|
||||
redrawVFOs();
|
||||
saveVFOs();
|
||||
}
|
||||
|
||||
@ -194,7 +193,6 @@ void ritDisable(){
|
||||
if(globalSettings.ritOn){
|
||||
globalSettings.ritOn = false;
|
||||
setFrequency(globalSettings.ritFrequency);
|
||||
updateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,6 @@ void processCatCommand(uint8_t* cmd) {
|
||||
{
|
||||
uint32_t f = readFreq(cmd);
|
||||
setFrequency(f);
|
||||
updateDisplay();
|
||||
break;
|
||||
}
|
||||
|
||||
@ -320,7 +319,6 @@ void processCatCommand(uint8_t* cmd) {
|
||||
}
|
||||
|
||||
setFrequency(GetActiveVfoFreq());//Refresh frequency to get new mode to take effect
|
||||
updateDisplay();
|
||||
break;
|
||||
|
||||
case Ft817Command_e::PttOn:
|
||||
@ -331,7 +329,6 @@ void processCatCommand(uint8_t* cmd) {
|
||||
else {
|
||||
response[0] = RACK;
|
||||
}
|
||||
updateDisplay();
|
||||
break;
|
||||
|
||||
case Ft817Command_e::PttOff:
|
||||
@ -342,7 +339,6 @@ void processCatCommand(uint8_t* cmd) {
|
||||
response[0] = RACK;
|
||||
}
|
||||
globalSettings.txCatActive = false;
|
||||
updateDisplay();
|
||||
break;
|
||||
|
||||
case Ft817Command_e::VfoToggle:
|
||||
@ -352,7 +348,6 @@ void processCatCommand(uint8_t* cmd) {
|
||||
else{
|
||||
globalSettings.activeVfo = Vfo_e::VFO_A;
|
||||
}
|
||||
updateDisplay();
|
||||
break;
|
||||
|
||||
case Ft817Command_e::ReadEeprom:
|
||||
|
Loading…
Reference in New Issue
Block a user