mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
wip
This commit is contained in:
parent
ee108889db
commit
c4ff4efaf0
@ -176,18 +176,7 @@ int getDrive(char *mess) {
|
|||||||
|
|
||||||
int openFileForFlash(FILE **flashfd, FILE **srcfd, char *mess) {
|
int openFileForFlash(FILE **flashfd, FILE **srcfd, char *mess) {
|
||||||
FPGAdontTouchFlash();
|
FPGAdontTouchFlash();
|
||||||
{
|
|
||||||
char cmd[MAX_STR_LENGTH] = {0};
|
|
||||||
char retvals[MAX_STR_LENGTH] = {0};
|
|
||||||
strcpy(cmd, "ls -lrt /var/tmp/");
|
|
||||||
if (FAIL == executeCommand(cmd, retvals, logINFOBLUE)) {
|
|
||||||
strcpy(mess, "Could not program fpga. Could not delete old file: ");
|
|
||||||
strncat(mess, retvals, sizeof(mess) - strlen(mess) - 1);
|
|
||||||
strcat(mess, "\n");
|
|
||||||
LOG(logERROR, (mess));
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// open src file
|
// open src file
|
||||||
*srcfd = fopen(TEMP_PROG_FILE_NAME, "r");
|
*srcfd = fopen(TEMP_PROG_FILE_NAME, "r");
|
||||||
if (*srcfd == NULL) {
|
if (*srcfd == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user