- scan: show scan on external display

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-09-18 15:54:26 +02:00
committed by Thilo Graf
parent 7f6a967b25
commit 38ceb80395

View File

@@ -58,6 +58,10 @@
#include <zapit/getservices.h>
#include <hardware/video.h>
#ifdef ENABLE_LCD4LINUX
#include "driver/lcd4l.h"
#endif
extern cVideo * videoDecoder;
#define NEUTRINO_SCAN_START_SCRIPT "scan.start"
@@ -394,6 +398,9 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
#ifdef ENABLE_GRAPHLCD
cGLCD::unlockChannel();
#endif
#ifdef ENABLE_LCD4LINUX
CLCD4l::getInstance()->RemoveFile("/tmp/lcd/menu");
#endif
return menu_return::RETURN_REPAINT;
}
@@ -423,6 +430,10 @@ neutrino_msg_t CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
if (g_settings.glcd_enable)
cGLCD::lockChannel(g_Locale->getText(LOCALE_SCANTS_HEAD), str, 0);
//cGLCD::lockChannel(g_Locale->getText(LOCALE_BOUQUETLIST_HEAD), chan->getName().c_str(), 0);
#endif
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support)
CLCD4l::getInstance()->CreateFile("/tmp/lcd/menu", g_Locale->getText(LOCALE_SCANTS_HEAD), g_settings.lcd4l_convert);
#endif
break;
@@ -436,6 +447,10 @@ neutrino_msg_t CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
#ifdef ENABLE_GRAPHLCD
if (g_settings.glcd_enable)
cGLCD::lockChannel(g_Locale->getText(LOCALE_SCANTS_HEAD), str, 0);
#endif
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support)
CLCD4l::getInstance()->CreateFile("/tmp/lcd/menu", g_Locale->getText(LOCALE_SCANTS_HEAD), g_settings.lcd4l_convert);
#endif
break;