minor cleanup
This commit is contained in:
parent
49b3d771d1
commit
9cea3ed9ad
|
|
@ -199,7 +199,8 @@ void Display::drawFreq(DispEntry *de) {
|
|||
void Display::drawAFC(DispEntry *de) {
|
||||
if(!sonde.config.showafc) return;
|
||||
SETFONT(de->fmt);
|
||||
snprintf(buf, 15, " %+3.2fk", sonde.si()->afc*0.001);
|
||||
if(sonde.si()->afc==0) { strcpy(buf, " "); }
|
||||
else { snprintf(buf, 15, " %+3.2fk", sonde.si()->afc*0.001); }
|
||||
u8x8->drawString(de->x, de->y, buf+strlen(buf)-8);
|
||||
}
|
||||
void Display::drawIP(DispEntry *de) {
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ void Sonde::updateDisplayIP() {
|
|||
void Sonde::updateDisplayScanner() {
|
||||
disp.setLayout(0);
|
||||
disp.updateDisplay();
|
||||
disp.setLayout(2);
|
||||
disp.setLayout(config.display);
|
||||
#if 0
|
||||
char buf[16];
|
||||
u8x8->setFont(u8x8_font_7x14_1x2_r);
|
||||
|
|
|
|||
Loading…
Reference in New Issue