From 6de77ee3102efc2456e42a3c230637d45d1fe8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 20 Sep 2022 16:30:21 +0200 Subject: [PATCH] use cyrillic font if defined --- src/modules/CannedMessageModule.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/CannedMessageModule.cpp b/src/modules/CannedMessageModule.cpp index bf6c166d..f30ef776 100644 --- a/src/modules/CannedMessageModule.cpp +++ b/src/modules/CannedMessageModule.cpp @@ -6,6 +6,10 @@ #include "PowerFSM.h" // neede for button bypass #include "mesh/generated/cannedmessages.pb.h" +#ifdef OLED_RU +#include "fonts/OLEDDisplayFontsRU.h" +#endif + #if defined(USE_EINK) || defined(ILI9341_DRIVER) // The screen is bigger so use bigger fonts #define FONT_SMALL ArialMT_Plain_16 @@ -248,7 +252,6 @@ int32_t CannedMessageModule::runOnce() this->runState = CANNED_MESSAGE_RUN_STATE_ACTIVE; DEBUG_MSG("MOVE DOWN (%d):%s\n", this->currentMessageIndex, this->getCurrentMessage()); } else if (this->runState == CANNED_MESSAGE_RUN_STATE_FREETEXT) { - DEBUG_MSG("KEYSTROKE (%d):%x\n", this->cursor, this->payload); e.frameChanged = true; switch (this->payload) { case 0xb4: // left