Draw nicer temp sybols if current font allows
This commit is contained in:
@@ -63,11 +63,20 @@ void gui_drawTipTemp(bool symbol) {
|
|||||||
|
|
||||||
OLED::printNumber(Temp, 3); // Draw the tip temp out finally
|
OLED::printNumber(Temp, 3); // Draw the tip temp out finally
|
||||||
if (symbol) {
|
if (symbol) {
|
||||||
|
if (OLED::getFont() == 0) {
|
||||||
|
//Big font, can draw nice symbols
|
||||||
|
if (systemSettings.temperatureInF)
|
||||||
|
OLED::drawSymbol(0);
|
||||||
|
else
|
||||||
|
OLED::drawSymbol(1);
|
||||||
|
} else {
|
||||||
|
//Otherwise fall back to chars
|
||||||
if (systemSettings.temperatureInF)
|
if (systemSettings.temperatureInF)
|
||||||
OLED::print(SymbolDegF);
|
OLED::print(SymbolDegF);
|
||||||
else
|
else
|
||||||
OLED::print(SymbolDegC);
|
OLED::print(SymbolDegC);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ButtonState getButtonState() {
|
ButtonState getButtonState() {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user