aboutsummaryrefslogtreecommitdiff
path: root/src/commands.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-20 11:32:59 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-02-20 12:50:15 +0100
commit990063fb3ecfc6baeb51e4f57b3f75ee16bac56e (patch)
tree7c83c6381210bf5223a13fd43b3731d401bdfd02 /src/commands.rs
parent1e127de5173e3b8fb62efc79f97651ca22694441 (diff)
downloadntw-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.rs2
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 {