forked from M-Labs/humpback-dds
main: fix cfg warn
This commit is contained in:
parent
e35c573a09
commit
6280e092e3
|
@ -1,6 +1,5 @@
|
|||
#![no_main]
|
||||
#![no_std]
|
||||
#![feature(str_strip)]
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
use log::{ trace };
|
||||
|
@ -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::<consts::U256, _>::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();
|
||||
|
|
Loading…
Reference in New Issue