Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bluetooth_monitor): fix unreadVariable #8371

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions system/bluetooth_monitor/src/bluetooth_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
return;
}

int level = DiagStatus::OK;
int whole_level = DiagStatus::OK;
StatusCode whole_status_code = StatusCode::OK;
int index = 0;
Expand All @@ -158,7 +157,7 @@
stat.add(fmt::format("Device {}: {}", index, status.function_name), status.error_message);
}

level = status_error_list_.at(status.status_code);
int level = status_error_list_.at(status.status_code);

Check warning on line 160 in system/bluetooth_monitor/src/bluetooth_monitor.cpp

View check run for this annotation

Codecov / codecov/patch

system/bluetooth_monitor/src/bluetooth_monitor.cpp#L160

Added line #L160 was not covered by tests
whole_level = std::max(whole_level, level);
whole_status_code = std::max(whole_status_code, status.status_code);
++index;
Expand Down
Loading