From 990063fb3ecfc6baeb51e4f57b3f75ee16bac56e Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 20 Feb 2019 11:32:59 +0000 Subject: 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]. --- src/commands.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/commands.rs') 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 { -- cgit v1.2.1