cleanup a warning when not in tts mode

This commit is contained in:
bunnie 2022-03-11 18:39:10 +08:00
parent 13ac7d4228
commit 7b45241f2a

View file

@ -88,6 +88,7 @@ fn xmain() -> ! {
let _redraw_handle = thread::spawn({
let op = Arc::clone(&op);
move || {
#[cfg(feature="tts")]
let tt = ticktimer_server::Ticktimer::new().unwrap();
// build the core data structure here
let text_action = TextEntry {
@ -206,7 +207,6 @@ fn xmain() -> ! {
}
fixed_items.clear();
#[cfg(feature="tts")]
#[cfg(feature="tts")]
{
tts.tts_blocking(t!("modals.checkbox", xous::LANG)).unwrap();
tts.tts_blocking(config.prompt.as_str().unwrap()).unwrap();