summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-10 11:52:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-10 11:52:47 +0200
commit93102b45e09ac75bb390aa58b0a94c63f0da0091 (patch)
tree16b326e5645a3458f35e7082db4923ed0218fc32
parentfd3bf51f7de24a71bb1855ee558f1761bebea2e3 (diff)
downloadvdr-93102b45e09ac75bb390aa58b0a94c63f0da0091.tar.gz
vdr-93102b45e09ac75bb390aa58b0a94c63f0da0091.tar.bz2
Fixed a typo in CAMMENURETYTIMEOUT and added logging CAM enquiries
-rw-r--r--HISTORY3
-rw-r--r--menu.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index 6d285716..62fed8c0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9103,7 +9103,7 @@ Video Disk Recorder Revision History
- Fixed the locking sequence when switching between 'Now', 'Next' and 'Schedule'
in the Schedules menu.
-2017-06-08: Version 2.3.7
+2017-06-10: Version 2.3.7
- Fixed false positives when checking the locking sequence, in case of nested locks
within the same thread.
@@ -9112,3 +9112,4 @@ Video Disk Recorder Revision History
- Fixed L(ock) and U(nlock) indicators in cStateLockLog.
- Increased SLL_LENGTH in thread.c to better handle long caller lines, and enclosed
logCaller with DEBUG_LOCKCALL to preserve memory in normal operation.
+- Fixed a typo in CAMMENURETYTIMEOUT and added logging CAM enquiries.
diff --git a/menu.c b/menu.c
index 2aacc419..7511a9ec 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.33 2017/06/07 15:36:52 kls Exp $
+ * $Id: menu.c 4.34 2017/06/10 09:52:14 kls Exp $
*/
#include "menu.h"
@@ -43,7 +43,7 @@
#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
#define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours
#define MAXWAITFORCAMMENU 10 // seconds to wait for the CAM menu to open
-#define CAMMENURETYTIMEOUT 3 // seconds after which opening the CAM menu is retried
+#define CAMMENURETRYTIMEOUT 3 // seconds after which opening the CAM menu is retried
#define CAMRESPONSETIMEOUT 5 // seconds to wait for a response from a CAM
#define MINFREEDISK 300 // minimum free disk space (in MB) required to start recording
#define NODISKSPACEDELTA 300 // seconds between "Not enough disk space to start recording!" messages
@@ -2294,8 +2294,10 @@ void cMenuCam::Set(void)
free(input);
input = MALLOC(char, Length + 1);
*input = 0;
+ dsyslog("CAM %d: Enquiry ------------------", camSlot->SlotNumber());
GenerateTitle();
Add(new cOsdItem(ciEnquiry->Text(), osUnknown, false));
+ dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciEnquiry->Text());
Add(new cOsdItem("", osUnknown, false));
Add(new cMenuEditNumItem("", input, Length, ciEnquiry->Blind()));
}
@@ -3836,7 +3838,7 @@ eOSState cMenuSetupCAM::Menu(void)
while (time(NULL) - t0 <= MAXWAITFORCAMMENU) {
if (item->CamSlot()->HasUserIO())
break;
- if (time(NULL) - t1 >= CAMMENURETYTIMEOUT) {
+ if (time(NULL) - t1 >= CAMMENURETRYTIMEOUT) {
dsyslog("CAM %d: retrying to enter CAM menu...", item->CamSlot()->SlotNumber());
item->CamSlot()->EnterMenu();
t1 = time(NULL);