From 8f321d540e000f7c6a522ed1666439e12e7890a5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 2 Feb 2022 23:59:37 +0800 Subject: [PATCH] clean up a spurious dialog box in hosted mode --- services/net/src/connection_manager.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/net/src/connection_manager.rs b/services/net/src/connection_manager.rs index a228d01e4..6a7fe91dc 100644 --- a/services/net/src/connection_manager.rs +++ b/services/net/src/connection_manager.rs @@ -9,8 +9,9 @@ use xous_ipc::Buffer; use num_traits::*; use std::io::Read; use std::collections::{HashMap, HashSet}; -use locales::t; use crate::ComIntSources; +#[cfg(any(target_os = "none", target_os = "xous"))] +use locales::t; #[allow(dead_code)] const BOOT_POLL_INTERVAL_MS: usize = 4_758; // a slightly faster poll during boot so we acquire wifi faster once PDDB is mounted @@ -65,6 +66,7 @@ pub(crate) fn connection_manager(sid: xous::SID, activity_interval: Arc= MIN_EC_REV; + #[cfg(any(target_os = "none", target_os = "xous"))] // don't show this pop-up in hosted mode, it's just annoying and not helpful if !rev_ok { log::warn!("EC firmware is too old to interoperate with the connec tion manager."); let mut note = String::from(t!("net.ec_rev_old", xous::LANG));