mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
updated comparison
This commit is contained in:
committed by
Lorenz Meier
parent
959aefba63
commit
f8ff5b617b
@@ -500,7 +500,7 @@ param_reset_excludes(const char* excludes[], int num_excludes)
|
||||
|
||||
for (int index = 0, len = strlen(excludes[index]); index < num_excludes; index ++) {
|
||||
if((excludes[index][len - 1] == '*'
|
||||
&& strncmp(name, excludes[index], strlen(excludes[index]))) == 0
|
||||
&& strncmp(name, excludes[index], len - 1)) == 0
|
||||
|| strcmp(name, excludes[index]) == 0) {
|
||||
|
||||
param_reset(param);
|
||||
|
||||
Reference in New Issue
Block a user