mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
check not required when writing to fpga flash dir
This commit is contained in:
parent
9d63875802
commit
044843c8b7
@ -9381,11 +9381,14 @@ void receive_program_via_blackfin(int file_des, enum PROGRAM_INDEX index,
|
|||||||
functionType);
|
functionType);
|
||||||
LOG(logERROR, (mess));
|
LOG(logERROR, (mess));
|
||||||
#else
|
#else
|
||||||
// check update is allowed (Non Amd OR AMD + current kernel)
|
// only when writing to kernel flash or root directory
|
||||||
ret = allowUpdate(mess, functionType);
|
if (index != PROGRAM_FPGA) {
|
||||||
if (ret == FAIL) {
|
// check update is allowed (Non Amd OR AMD + current kernel)
|
||||||
Server_SendResult(file_des, INT32, NULL, 0);
|
ret = allowUpdate(mess, functionType);
|
||||||
return;
|
if (ret == FAIL) {
|
||||||
|
Server_SendResult(file_des, INT32, NULL, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// open file and allocate memory for part program
|
// open file and allocate memory for part program
|
||||||
|
Loading…
x
Reference in New Issue
Block a user