mirror of https://github.com/arendst/Tasmota.git
fix max text size
This commit is contained in:
parent
7f6b6529c7
commit
2d428cf427
|
@ -104,7 +104,7 @@ uint8_t *Renderer::allocate_framebuffer(uint32_t size) {
|
||||||
|
|
||||||
void Renderer::setTextSize(uint8_t sf) {
|
void Renderer::setTextSize(uint8_t sf) {
|
||||||
if (sf < 1) sf = 1;
|
if (sf < 1) sf = 1;
|
||||||
if (sf > 4) sf = 4;
|
if (sf > 16) sf = 16;
|
||||||
tsize = sf;
|
tsize = sf;
|
||||||
Adafruit_GFX::setTextSize(sf);
|
Adafruit_GFX::setTextSize(sf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue