Merge pull request #123 from 675658/iss122

fix: 修复在关闭OUTPUT_LOCK的情况下依然会调用elog_port_output_lock函数的bug [issue 122]
pull/124/head
朱天龙 (Armink) 3 years ago committed by GitHub
commit cc7a3e6d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -428,7 +428,7 @@ void elog_set_filter_tag_lvl(const char *tag, uint8_t level)
return;
}
elog_port_output_lock();
elog_output_lock();
/* find the tag in arr */
for (i =0; i< ELOG_FILTER_TAG_LVL_MAX_NUM; i++){
if (elog.filter.tag_lvl[i].tag_use_flag == true &&
@ -481,7 +481,7 @@ uint8_t elog_get_filter_tag_lvl(const char *tag)
return level;
}
elog_port_output_lock();
elog_output_lock();
/* find the tag in arr */
for (i =0; i< ELOG_FILTER_TAG_LVL_MAX_NUM; i++){
if (elog.filter.tag_lvl[i].tag_use_flag == true &&

Loading…
Cancel
Save