diff options
author | Christian Völlinger <zerov83@gmail.com> | 2014-01-21 18:47:20 +0100 |
---|---|---|
committer | Christian Völlinger <zerov83@gmail.com> | 2014-01-21 18:47:20 +0100 |
commit | 27a4e9d7f3690c51c63fad7d329c990f48da54f1 (patch) | |
tree | 4410419af186ca00b09bfc987acb8808e88ac19a /vdrboblight.c | |
parent | 71b2a17ad25c8ad957ed2ee55c824382c122fb60 (diff) | |
download | vdr-plugin-boblight-27a4e9d7f3690c51c63fad7d329c990f48da54f1.tar.gz vdr-plugin-boblight-27a4e9d7f3690c51c63fad7d329c990f48da54f1.tar.bz2 |
SVDRP now returns mode
Diffstat (limited to 'vdrboblight.c')
-rw-r--r-- | vdrboblight.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vdrboblight.c b/vdrboblight.c index 4e47dbf..491e30e 100644 --- a/vdrboblight.c +++ b/vdrboblight.c @@ -198,6 +198,22 @@ cString cPluginBoblight::SVDRPCommand(const char* Command, const char* Option, i ReplyCode = 550; return "stripes detached"; } + else if(!Option || !strlen(Option)) { + switch(cfg.viewMode) { + case cAmbiService::vmAtmo: + ReplyCode = 551; + return "atmo mode"; + case cAmbiService::vmFixedCol: + ReplyCode = 552; + return "fixed color"; + case cAmbiService::vmBlack: + ReplyCode = 553; + return "stripes black"; + case cAmbiService::vmDetached: + ReplyCode = 554; + return "stripes detached"; + } + } else { ReplyCode = 901; |