made some functions common

This commit is contained in:
Dhanya Maliakal
2017-06-14 10:43:15 +02:00
parent cb7b8713cf
commit a95dbd2215
11 changed files with 338 additions and 305 deletions

View File

@ -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)