minor cleanup
This commit is contained in:
parent
49b3d771d1
commit
9cea3ed9ad
|
|
@ -164,7 +164,7 @@ void Display::drawVS(DispEntry *de) {
|
||||||
void Display::drawID(DispEntry *de) {
|
void Display::drawID(DispEntry *de) {
|
||||||
SETFONT((de->fmt&0x01));
|
SETFONT((de->fmt&0x01));
|
||||||
if(!sonde.si()->validID) {
|
if(!sonde.si()->validID) {
|
||||||
u8x8->drawString(de->x, de->y, "nnnnnnnn ");
|
u8x8->drawString(de->x, de->y, "nnnnnnnn ");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
u8x8->drawString(de->x, de->y, sonde.si()->id);
|
u8x8->drawString(de->x, de->y, sonde.si()->id);
|
||||||
|
|
@ -199,7 +199,8 @@ void Display::drawFreq(DispEntry *de) {
|
||||||
void Display::drawAFC(DispEntry *de) {
|
void Display::drawAFC(DispEntry *de) {
|
||||||
if(!sonde.config.showafc) return;
|
if(!sonde.config.showafc) return;
|
||||||
SETFONT(de->fmt);
|
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);
|
u8x8->drawString(de->x, de->y, buf+strlen(buf)-8);
|
||||||
}
|
}
|
||||||
void Display::drawIP(DispEntry *de) {
|
void Display::drawIP(DispEntry *de) {
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ void Sonde::updateDisplayIP() {
|
||||||
void Sonde::updateDisplayScanner() {
|
void Sonde::updateDisplayScanner() {
|
||||||
disp.setLayout(0);
|
disp.setLayout(0);
|
||||||
disp.updateDisplay();
|
disp.updateDisplay();
|
||||||
disp.setLayout(2);
|
disp.setLayout(config.display);
|
||||||
#if 0
|
#if 0
|
||||||
char buf[16];
|
char buf[16];
|
||||||
u8x8->setFont(u8x8_font_7x14_1x2_r);
|
u8x8->setFont(u8x8_font_7x14_1x2_r);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue