mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
made some functions common
This commit is contained in:
@ -4603,11 +4603,7 @@ int program_fpga(int file_des) {
|
||||
printf("\n");
|
||||
|
||||
//closing file pointer to flash and informing FPGA
|
||||
if(stopWritingFPGAprogram(fp) == FAIL){
|
||||
ret=FAIL;
|
||||
sprintf(mess,"Could not write to flash. Error at end.\n");
|
||||
cprintf(RED,"%s",mess);
|
||||
}
|
||||
stopWritingFPGAprogram(fp);
|
||||
|
||||
//free resources
|
||||
if(fpgasrc != NULL)
|
||||
|
Reference in New Issue
Block a user