mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
removing the return value usage in start acquisition callback, callbacks will be called if registered, and we will write files if file write enabled
This commit is contained in:
@ -90,6 +90,8 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
//register callbacks
|
||||
//remember to set file write enable to 0 (using the client) if we should not write files and
|
||||
//you will write data using the callbacks
|
||||
|
||||
/**
|
||||
* Call back for start acquisition
|
||||
@ -99,10 +101,9 @@ int main(int argc, char *argv[]) {
|
||||
* fileindex
|
||||
* datasize
|
||||
*
|
||||
* return value is
|
||||
* 0 callback takes care of open,close,wrie file
|
||||
* 1 callback writes file, we have to open, close it
|
||||
* 2 we open, close, write file, callback does not do anything
|
||||
* return value is insignificant at the moment
|
||||
* we write depending on file write enable
|
||||
* users get data to write depending on call backs registered
|
||||
*/
|
||||
printf("Registering StartAcq()\n");
|
||||
receivers[i]->registerCallBackStartAcquisition(StartAcq, NULL);
|
||||
@ -133,7 +134,6 @@ int main(int argc, char *argv[]) {
|
||||
* version is the version number of this structure format
|
||||
* dataPointer is the pointer to the data
|
||||
* dataSize in bytes is the size of the data in bytes
|
||||
* fileDescriptor is the file descriptor
|
||||
*/
|
||||
printf("Registering GetData() \n");
|
||||
receivers[i]->registerCallBackRawDataReady(GetData,NULL);
|
||||
|
Reference in New Issue
Block a user