@@ -281,12 +281,6 @@ static void drawModuleFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int
281281 pi.drawFrame (display, state, x, y);
282282}
283283
284- // Ignore messages originating from phone (from the current node 0x0) unless range test or store and forward module are enabled
285- static bool shouldDrawMessage (const meshtastic_MeshPacket *packet)
286- {
287- return packet->from != 0 && !moduleConfig.store_forward .enabled ;
288- }
289-
290284/* *
291285 * Given a recent lat/lon return a guess of the heading the user is walking on.
292286 *
@@ -341,9 +335,7 @@ Screen::Screen(ScanI2C::DeviceAddress address, meshtastic_Config_DisplayConfig_O
341335 uint8_t TFT_MESH_b = rawRGB & 0xFF ;
342336 LOG_INFO (" Values of r,g,b: %d, %d, %d" , TFT_MESH_r, TFT_MESH_g, TFT_MESH_b);
343337
344- if (TFT_MESH_r <= 255 && TFT_MESH_g <= 255 && TFT_MESH_b <= 255 ) {
345- TFT_MESH = COLOR565 (TFT_MESH_r, TFT_MESH_g, TFT_MESH_b);
346- }
338+ TFT_MESH = COLOR565 (TFT_MESH_r, TFT_MESH_g, TFT_MESH_b);
347339 }
348340
349341#if defined(USE_SH1106) || defined(USE_SH1107) || defined(USE_SH1107_128_64)
@@ -813,6 +805,7 @@ int32_t Screen::runOnce()
813805 break ;
814806 case Cmd::STOP_ALERT_FRAME:
815807 NotificationRenderer::pauseBanner = false ;
808+ break ;
816809 case Cmd::STOP_BOOT_SCREEN:
817810 EINK_ADD_FRAMEFLAG (dispdev, COSMETIC); // E-Ink: Explicitly use full-refresh for next frame
818811 if (NotificationRenderer::current_notification_type != notificationTypeEnum::text_input) {
@@ -822,7 +815,7 @@ int32_t Screen::runOnce()
822815 case Cmd::NOOP:
823816 break ;
824817 default :
825- LOG_ERROR (" Invalid screen cmd" );
818+ LOG_ERROR (" Invalid screen cmd %d " , static_cast < int >(cmd. cmd ) );
826819 }
827820 }
828821
@@ -983,9 +976,6 @@ void Screen::setFrames(FrameFocus focus)
983976 }
984977#endif
985978
986- // Declare this early so it’s available in FOCUS_PRESERVE block
987- bool willInsertTextMessage = shouldDrawMessage (&devicestate.rx_text_message );
988-
989979 if (!hiddenFrames.home ) {
990980 fsi.positions .home = numframes;
991981 normalFrames[numframes++] = graphics::UIRenderer::drawDeviceFocused;
0 commit comments