From 468807466c47543e84656cb3e782d08d88d017b3 Mon Sep 17 00:00:00 2001 From: Manuel <71137295+mverch67@users.noreply.github.com> Date: Tue, 18 Jul 2023 13:10:39 +0200 Subject: [PATCH] fix BLE PIN screen for not so large screens (#2624) * add hwid for auto-detection * fix: heltec-wireless-tracker USB serial * fix BLE PIN screen for not so large displays --- src/graphics/Screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 3105ee218..689c0315c 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -296,7 +296,7 @@ static void drawModuleFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int static void drawFrameBluetooth(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y) { int x_offset = display->width() / 2; - int y_offset = display->height() == 64 ? 0 : 32; + int y_offset = display->height() <= 80 ? 0 : 32; display->setTextAlignment(TEXT_ALIGN_CENTER); display->setFont(FONT_MEDIUM); display->drawString(x_offset + x, y_offset + y, "Bluetooth");