diff --git a/src/mqtt_mux.rs b/src/mqtt_mux.rs index 95c41ae..ce4a170 100644 --- a/src/mqtt_mux.rs +++ b/src/mqtt_mux.rs @@ -150,7 +150,7 @@ impl MqttMux where SPI: Transfer { let division = u8::from_str_radix(core::str::from_utf8(message).unwrap(), 10) .map_or_else( |_| Err(Error::MqttCommandError), - |div| if (div == 1 || div == 2 || div == 4) { + |div| if div == 1 || div == 2 || div == 4 { Ok(div) } else { Err(Error::MqttCommandError) @@ -185,6 +185,8 @@ impl MqttMux where SPI: Transfer { } // TODO: Implement this + // Only need to sort the command enum + // Obviously. This is what a MUX does fn execute(&mut self, command_type: MqttCommandType) -> Result<(), Error> { info!("{:?}", command_type); match command_type {