diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-02-20 11:32:59 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-02-20 12:50:15 +0100 |
commit | 990063fb3ecfc6baeb51e4f57b3f75ee16bac56e (patch) | |
tree | 7c83c6381210bf5223a13fd43b3731d401bdfd02 /src/commands.rs | |
parent | 1e127de5173e3b8fb62efc79f97651ca22694441 (diff) | |
download | ntw-990063fb3ecfc6baeb51e4f57b3f75ee16bac56e.tar.gz ntw-990063fb3ecfc6baeb51e4f57b3f75ee16bac56e.tar.bz2 |
Rename commands::COMMAND_LEN to device::RESPONSE_DATA_LEN
Previously, we had the device::REQUEST_DATA_LEN constant for the size of
the raw data in the request, and the commands::COMMAND_LEN constant for
the size of the raw data in the response. This patch renames
commands::COMMAND_LEN to device::RESPONSE_DATA_LEN for consistency. It
also introduces the {Request,Response}Data type aliases for [u8;
{REQUEST,RESPONSE}_DATA_LEN].
Diffstat (limited to 'src/commands.rs')
-rw-r--r-- | src/commands.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/commands.rs b/src/commands.rs index 3a7d16a..d05423e 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -8,8 +8,6 @@ use serde::{Deserialize, Serialize}; use crate::device::CommandStatus; -pub const COMMAND_LEN: usize = 53; - enum_cmd! { #[derive(Clone, Copy, Debug, PartialEq)] pub enum CommandId { |