Skip to content

Commit

Permalink
Fixes log messages not showing up in log panel. (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-michaelburke authored May 11, 2022
1 parent 0fcdd1f commit a50ee48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions console_backend/src/process_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use sbp::{
link::LinkSource,
messages::{
imu::{MsgImuAux, MsgImuRaw},
logging::MsgLog,
mag::MsgMagRaw,
navigation::{MsgAgeCorrections, MsgPosLlhCov, MsgUtcTime, MsgVelNed},
observation::{MsgObsDepA, MsgSvAzEl},
Expand All @@ -22,6 +23,7 @@ use sbp::{
use crate::client_sender::BoxedClientSender;
use crate::connection::Connection;
use crate::errors::{PROCESS_MESSAGES_FAILURE, UNABLE_TO_CLONE_UPDATE_SHARED};
use crate::log_panel;
use crate::settings_tab;
use crate::shared_state::SharedState;
use crate::types::{
Expand Down Expand Up @@ -181,6 +183,9 @@ fn register_events(link: sbp::link::Link<Tabs>) {
.handle_ins_updates(msg.clone());
tabs.status_bar.lock().unwrap().handle_ins_updates(msg);
});
link.register(|_tabs: &Tabs, msg: MsgLog| {
log_panel::handle_log_msg(msg);
});
link.register(|tabs: &Tabs, msg: MsgMagRaw| {
tabs.advanced_magnetometer
.lock()
Expand Down

0 comments on commit a50ee48

Please sign in to comment.