minor cleanup

This commit is contained in:
Hansi, dl9rdz 2019-05-22 23:04:06 +02:00
parent 49b3d771d1
commit 9cea3ed9ad
2 changed files with 4 additions and 3 deletions

View File

@ -164,7 +164,7 @@ void Display::drawVS(DispEntry *de) {
void Display::drawID(DispEntry *de) {
SETFONT((de->fmt&0x01));
if(!sonde.si()->validID) {
u8x8->drawString(de->x, de->y, "nnnnnnnn ");
u8x8->drawString(de->x, de->y, "nnnnnnnn ");
return;
}
u8x8->drawString(de->x, de->y, sonde.si()->id);
@ -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) {

View File

@ -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);