changed gotthard dynamic gain value and fixed bug of writing settings enum with more offset to not mixup with conf gain value in firmware

This commit is contained in:
Dhanya Maliakal
2015-10-23 10:57:45 +02:00
parent 8ffdcb08c9
commit 0ea9cc34b0
3 changed files with 5 additions and 5 deletions

View File

@ -1170,7 +1170,7 @@ int initConfGain(int isettings,int val,int imod){
retval=(bus_r(addr)&GAIN_MASK);
#ifdef VERBOSE
printf("Value read from Gain reg is %d\n",retval);
#endif
#endif
if((val!=-1)&&(retval!=val))
return -1;
@ -1183,7 +1183,7 @@ int initConfGain(int isettings,int val,int imod){
retval=((bus_r(addr)&SETTINGS_MASK)>>SETTINGS_OFFSET);
#ifdef VERBOSE
printf("Settings read from reg is %d\n",retval);
#endif
#endif
if((isettings!=-1)&&(retval!=isettings)){
printf("\n\nSettings r\n\n");
return -1;