Revert "Revert "pulse chip fixed""

This reverts commit 356e6cb8cacec52ec6883e625a6b3639633f3b0e.
This commit is contained in:
Wang Xiaoqiang
2015-12-15 16:29:35 +01:00
parent ca6f2b8588
commit 54c1765f34
5 changed files with 6 additions and 6 deletions

View File

@ -1777,13 +1777,13 @@ int Feb_Control_PulseChip(int npulses){
cprintf(RED,"some wait error\n");
}
Feb_Control_SetExternalEnableMode(on,1);
counter_bit = ~0;
counter_bit = (on?0:1);
printf("counter_bit:%d\n",counter_bit);
if(on)
printf("Pulse chip success\n");
printf("Pulse chip success\n\n");
else
printf("Reset to normal mode success\n");
printf("Reset to normal mode success\n\n");
return 1;
}

View File

@ -172,7 +172,7 @@ int Feb_Control_GetModuleNumber();
//functions for testing
/*int Feb_Control_SetTestModeVariable(int on=1);*/
int Feb_Control_SetTestModeVariable(int on);
int Feb_Control_SetInTestModeVariable(int on);
int Feb_Control_GetTestModeVariable();
void Feb_Control_Set_Counter_Bit(int value);