From 6280e092e3df3a5932482eead7c298080a646819 Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 25 Sep 2020 17:06:33 +0800 Subject: [PATCH] main: fix cfg warn --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index dd4e34a..aefae0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ #![no_main] #![no_std] -#![feature(str_strip)] #![feature(core_intrinsics)] use log::{ trace }; @@ -200,7 +199,7 @@ fn main() -> ! { ); /* - * I/O_Update -> PB15 + * I/O_Update -> PB15 */ let io_update = gpiob.pb15.into_push_pull_output(); @@ -220,7 +219,6 @@ fn main() -> ! { ); urukul.reset().unwrap(); - // info!("Test value: {}", urukul.test().unwrap()); let mut mqtt_mux = MqttMux::new(urukul); @@ -238,9 +236,6 @@ fn main() -> ! { let tcp_stack = NetworkStack::new(&mut net_interface, sockets); - // Case dealt: Ethernet connection break down, neither side has timeout - // Limitation: Timeout inequality will cause TCP socket state to desync - // Probably fixed in latest smoltcp commit let mut client = MqttClient::::new( IpAddr::V4(Ipv4Addr::new(192, 168, 1, 125)), "Urukul", @@ -269,7 +264,6 @@ fn main() -> ! { // Process MQTT messages about Urukul/Control let connection = client .poll(|_client, topic, message, _properties| { - // info!("On {:?}, received: {:?}", topic, message); // Why is topic a string while message is a slice? mqtt_mux.process_mqtt(topic, message).unwrap(); }).is_ok();