From 2c775ce4f145570600f24821e2010f3e95d18f8e Mon Sep 17 00:00:00 2001 From: Ulrich Eckhardt Date: Sun, 15 Jul 2018 16:55:50 +0200 Subject: Improved CRC check. - The CRC check uses now the lenght of the RDS Frame, this improves decoding specially on HarmonyFM. - Code splits and code cleanups. - Remove currently unused Traffic decoder. --- radio.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'radio.c') diff --git a/radio.c b/radio.c index 99c4a6f..f2f8c43 100644 --- a/radio.c +++ b/radio.c @@ -61,7 +61,7 @@ int S_RtMsgItems = 0; int S_RassText = 1; int S_ExtInfo = 0; uint32_t rt_color[9]; -int S_Verbose = 1; +int S_Verbose = 0; int S_Encrypted = 0; // Radiotext char RT_Text[5][RT_MEL]; @@ -187,37 +187,38 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[]) while ((c = getopt_long(argc, argv, "f:d:l:r:e:v:", long_options, NULL)) != -1) { switch (c) { case 'f': - printf("vdr-radio: arg files-dir = %s\n", optarg); + isyslog("vdr-radio: arg files-dir = %s", optarg); ConfigDir = strdup(optarg); ConfigDirParam = true; break; case 'd': - printf("vdr-radio: arg data-dir = %s\n", optarg); + isyslog("vdr-radio: arg data-dir = %s", optarg); DataDir = strdup(optarg); DataDirParam = true; break; case 'l': - printf("vdr-radio: arg live-mpeg = %s\n", optarg); + isyslog("vdr-radio: arg live-mpeg = %s", optarg); LiveFile = strdup(optarg); LiveFileParam = true; break; case 'r': - printf("vdr-radio: arg replay-mpeg = %s\n", optarg); + isyslog("vdr-radio: arg replay-mpeg = %s", optarg); ReplayFile = strdup(optarg); ReplayFileParam = true; break; case 'v': - printf("vdr-radio: arg verbose = %s\n", optarg); - if (isnumber(optarg)) + isyslog("vdr-radio: arg verbose = %s", optarg); + if (isnumber(optarg)) { S_Verbose = atoi(optarg); + } break; case 'e': - printf("vdr-radio: arg encrypted = %s\n", optarg); + isyslog("vdr-radio: arg encrypted = %s", optarg); if (isnumber(optarg)) S_Encrypted = atoi(optarg); break; default: - printf("vdr-radio: arg char = %c\n", c); + isyslog("vdr-radio: arg char = %c\n", c); return false; } } @@ -228,7 +229,7 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[]) bool cPluginRadio::Start(void) { // Start any background activities the plugin shall perform. - printf("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n"); + isyslog("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n"); radioImage = new cRadioImage; if (!radioImage) -- cgit v1.2.3