diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/po/de_DE.po vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/de_DE.po --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/po/de_DE.po 2019-05-18 22:57:22.508176666 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/de_DE.po 2019-05-18 23:42:02.754123858 +0200 @@ -97,8 +97,11 @@ msgstr "Bargraph anzeigen" msgid "Do nothing" msgstr "Nichts unternehmen" -msgid "Showing clock" -msgstr "Uhrzeit anzeigen" +msgid "Showing big clock" +msgstr "große Uhr anzeigen" + +msgid "Showing small clock" +msgstr "kleine Uhr anzeigen" msgid "Turning display off" msgstr "Abschalten der Anzeige" diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/po/it_IT.po vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/it_IT.po --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/po/it_IT.po 2019-05-18 22:57:22.484176078 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/it_IT.po 2019-05-18 23:42:02.734123368 +0200 @@ -100,7 +100,10 @@ msgstr "Mostra grafico a barre" msgid "Do nothing" msgstr "Non fare nulla" -msgid "Showing clock" +msgid "Showing big clock" +msgstr "Mostra orologio" + +msgid "Showing small clock" msgstr "Mostra orologio" msgid "Turning display off" diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/setup.c vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.c --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/setup.c 2017-04-02 20:06:20.000000000 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.c 2019-05-18 23:01:15.297878379 +0200 @@ -230,7 +230,8 @@ cVFDMenuSetup::cVFDMenuSetup(cVFDWatch* static const char * szExitModes[eOnExitMode_LASTITEM]; szExitModes[eOnExitMode_SHOWMSG] = tr("Do nothing"); - szExitModes[eOnExitMode_SHOWCLOCK] = tr("Showing clock"); + szExitModes[eOnExitMode_SHOWBIGCLOCK] = tr("Showing big clock"); + szExitModes[eOnExitMode_SHOWSMALLCLOCK] = tr("Showing small clock"); szExitModes[eOnExitMode_BLANKSCREEN] = tr("Turning display off"); szExitModes[eOnExitMode_NEXTTIMER] = tr("Show next timer"); szExitModes[eOnExitMode_NEXTTIMER_BLANKSCR] = tr("Show only present next timer"); diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/setup.h vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.h --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/setup.h 2017-04-02 20:06:20.000000000 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.h 2019-05-18 23:02:25.307591076 +0200 @@ -19,7 +19,8 @@ enum eOnExitMode { eOnExitMode_SHOWMSG /**< Do nothing - just leave the "last" message there */ - ,eOnExitMode_SHOWCLOCK /**< Show the big clock */ + ,eOnExitMode_SHOWBIGCLOCK /**< Show the big clock */ + ,eOnExitMode_SHOWSMALLCLOCK /**< Show the small clock */ ,eOnExitMode_BLANKSCREEN /**< Blank the device completely */ ,eOnExitMode_NEXTTIMER /**< Show next active timer */ ,eOnExitMode_NEXTTIMER_BLANKSCR /**< Show next active timer, or blank if none timer defined */ diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/vfd.c vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.c --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/vfd.c 2017-04-02 20:06:20.000000000 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.c 2019-05-18 23:28:28.146146328 +0200 @@ -339,10 +339,10 @@ inline unsigned char toBCD(int x){ } /* - * Show the big clock. We need to set it to the current time, then it just + * Show the big or small clock. We need to set it to the current time, then it just * keeps counting automatically. */ -bool cVFD::SendCmdClock() { +bool cVFD::SendCmdClock(bool smallClock) { time_t tt; struct tm l; @@ -356,7 +356,13 @@ bool cVFD::SendCmdClock() { QueueData(toBCD(l.tm_hour)); // Show it - QueueCmd(CMD_BIGCLOCK); + if (smallClock) { + isyslog("targavfd: sending small clock"); + QueueCmd(CMD_SMALLCLOCK); + } else { + isyslog("targavfd: sending big clock"); + QueueCmd(CMD_BIGCLOCK); + } QueueData(TIME_24); return QueueFlush(); } diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/vfd.h vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.h --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/vfd.h 2017-04-02 20:06:20.000000000 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.h 2019-05-18 23:25:24.437628421 +0200 @@ -81,7 +81,7 @@ class cVFD : public cVFDQueue { protected: cVFDFont* pFont; - bool SendCmdClock(); + bool SendCmdClock(bool smallClock); bool SendCmdShutdown(); void Brightness(int nBrightness); public: diff -upr vdr-plugin-targavfd-0.3.1+git20170402.4891352/watch.c vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/watch.c --- vdr-plugin-targavfd-0.3.1+git20170402.4891352/watch.c 2017-04-02 20:06:20.000000000 +0200 +++ vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/watch.c 2019-05-18 23:09:49.486443680 +0200 @@ -201,10 +201,16 @@ void cVFDWatch::shutdown(int nExitMode) SendCmdShutdown(); break; } - case eOnExitMode_SHOWCLOCK: { - isyslog("targaVFD: closing, showing clock."); + case eOnExitMode_SHOWBIGCLOCK: { + isyslog("targaVFD: closing, showing big clock."); icons(0); - SendCmdClock(); + SendCmdClock(false); + break; + } + case eOnExitMode_SHOWSMALLCLOCK: { + isyslog("targaVFD: closing, showing small clock."); + icons(0); + SendCmdClock(true); break; } }