mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +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);
|
||||
LOG(logERROR, (mess));
|
||||
#else
|
||||
// check update is allowed (Non Amd OR AMD + current kernel)
|
||||
ret = allowUpdate(mess, functionType);
|
||||
if (ret == FAIL) {
|
||||
Server_SendResult(file_des, INT32, NULL, 0);
|
||||
return;
|
||||
// only when writing to kernel flash or root directory
|
||||
if (index != PROGRAM_FPGA) {
|
||||
// check update is allowed (Non Amd OR AMD + current kernel)
|
||||
ret = allowUpdate(mess, functionType);
|
||||
if (ret == FAIL) {
|
||||
Server_SendResult(file_des, INT32, NULL, 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// open file and allocate memory for part program
|
||||
|
Loading…
x
Reference in New Issue
Block a user