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();