去除bootram的安全校验 sbl打开打印
This commit is contained in:
Binary file not shown.
@@ -661,21 +661,25 @@ static void btm_receive_command(char *buf, int len)
|
||||
return;
|
||||
}
|
||||
|
||||
// int iot_btm_command_secret_grade_match(int secret_flag)
|
||||
// {
|
||||
// int flag;
|
||||
|
||||
// if (SECRET_PLTF_USER == cline_commands.secret_grade) {
|
||||
// flag = SECRET_CMD_USER;
|
||||
// } else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) {
|
||||
// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN;
|
||||
// } else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) {
|
||||
// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER;
|
||||
// } else {
|
||||
// flag = 0;
|
||||
// }
|
||||
|
||||
// return (flag & secret_flag) ? 1 : 0;
|
||||
// }
|
||||
int iot_btm_command_secret_grade_match(int secret_flag)
|
||||
{
|
||||
int flag;
|
||||
|
||||
if (SECRET_PLTF_USER == cline_commands.secret_grade) {
|
||||
flag = SECRET_CMD_USER;
|
||||
} else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) {
|
||||
flag = SECRET_CMD_USER | SECRET_CMD_ADMIN;
|
||||
} else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) {
|
||||
flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER;
|
||||
} else {
|
||||
flag = 0;
|
||||
}
|
||||
|
||||
return (flag & secret_flag) ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int iot_btm_command_break_detect(void)
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user