mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a typo in CAMMENURETYTIMEOUT and added logging CAM enquiries
This commit is contained in:
parent
fd3bf51f7d
commit
93102b45e0
3
HISTORY
3
HISTORY
@ -9103,7 +9103,7 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed the locking sequence when switching between 'Now', 'Next' and 'Schedule'
|
- Fixed the locking sequence when switching between 'Now', 'Next' and 'Schedule'
|
||||||
in the Schedules menu.
|
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
|
- Fixed false positives when checking the locking sequence, in case of nested locks
|
||||||
within the same thread.
|
within the same thread.
|
||||||
@ -9112,3 +9112,4 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed L(ock) and U(nlock) indicators in cStateLockLog.
|
- Fixed L(ock) and U(nlock) indicators in cStateLockLog.
|
||||||
- Increased SLL_LENGTH in thread.c to better handle long caller lines, and enclosed
|
- Increased SLL_LENGTH in thread.c to better handle long caller lines, and enclosed
|
||||||
logCaller with DEBUG_LOCKCALL to preserve memory in normal operation.
|
logCaller with DEBUG_LOCKCALL to preserve memory in normal operation.
|
||||||
|
- Fixed a typo in CAMMENURETYTIMEOUT and added logging CAM enquiries.
|
||||||
|
8
menu.c
8
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "menu.h"
|
||||||
@ -43,7 +43,7 @@
|
|||||||
#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
|
#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
|
||||||
#define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours
|
#define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours
|
||||||
#define MAXWAITFORCAMMENU 10 // seconds to wait for the CAM menu to open
|
#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 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 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
|
#define NODISKSPACEDELTA 300 // seconds between "Not enough disk space to start recording!" messages
|
||||||
@ -2294,8 +2294,10 @@ void cMenuCam::Set(void)
|
|||||||
free(input);
|
free(input);
|
||||||
input = MALLOC(char, Length + 1);
|
input = MALLOC(char, Length + 1);
|
||||||
*input = 0;
|
*input = 0;
|
||||||
|
dsyslog("CAM %d: Enquiry ------------------", camSlot->SlotNumber());
|
||||||
GenerateTitle();
|
GenerateTitle();
|
||||||
Add(new cOsdItem(ciEnquiry->Text(), osUnknown, false));
|
Add(new cOsdItem(ciEnquiry->Text(), osUnknown, false));
|
||||||
|
dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciEnquiry->Text());
|
||||||
Add(new cOsdItem("", osUnknown, false));
|
Add(new cOsdItem("", osUnknown, false));
|
||||||
Add(new cMenuEditNumItem("", input, Length, ciEnquiry->Blind()));
|
Add(new cMenuEditNumItem("", input, Length, ciEnquiry->Blind()));
|
||||||
}
|
}
|
||||||
@ -3836,7 +3838,7 @@ eOSState cMenuSetupCAM::Menu(void)
|
|||||||
while (time(NULL) - t0 <= MAXWAITFORCAMMENU) {
|
while (time(NULL) - t0 <= MAXWAITFORCAMMENU) {
|
||||||
if (item->CamSlot()->HasUserIO())
|
if (item->CamSlot()->HasUserIO())
|
||||||
break;
|
break;
|
||||||
if (time(NULL) - t1 >= CAMMENURETYTIMEOUT) {
|
if (time(NULL) - t1 >= CAMMENURETRYTIMEOUT) {
|
||||||
dsyslog("CAM %d: retrying to enter CAM menu...", item->CamSlot()->SlotNumber());
|
dsyslog("CAM %d: retrying to enter CAM menu...", item->CamSlot()->SlotNumber());
|
||||||
item->CamSlot()->EnterMenu();
|
item->CamSlot()->EnterMenu();
|
||||||
t1 = time(NULL);
|
t1 = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user