Add debug parameter to Dingo camera driver.
This commit is contained in:
@ -73,14 +73,14 @@ static int NUMCAMPAR = CAMDRIV_PARTABLE;
|
||||
|
||||
#define TR(a,b) a,
|
||||
#define TE(a,b) a
|
||||
enum campar {CAMDRIV_PARTABLE, MULTI};
|
||||
enum campar {CAMDRIV_PARTABLE, MULTI, DEBUG};
|
||||
enum flipval {FLIP_TABLE};
|
||||
#undef TR
|
||||
#undef TE
|
||||
|
||||
#define TR(a,b) b,
|
||||
#define TE(a,b) b
|
||||
static char *cacmdstr[] = {CAMDRIV_PARTABLE, "multi", NULL};
|
||||
static char *cacmdstr[] = {CAMDRIV_PARTABLE, "multi", "debug", NULL};
|
||||
static char *flipcmdstr[] = {FLIP_TABLE, NULL};
|
||||
#undef TR
|
||||
#undef TE
|
||||
@ -341,6 +341,12 @@ static int CamSet(CounterDriver *cntrData, char *name, int iCter, float fVal) {
|
||||
return 0;
|
||||
}
|
||||
switch (id) {
|
||||
case DEBUG:
|
||||
if (fVal == 1)
|
||||
camdriv->debug = 1;
|
||||
else
|
||||
camdriv->debug = 0;
|
||||
break;
|
||||
case MULTI:
|
||||
if (fVal != 0 && fVal != 1) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user