diff --git a/src/types/packet.rs b/src/types/packet.rs index 5782013..a8385ab 100644 --- a/src/types/packet.rs +++ b/src/types/packet.rs @@ -271,27 +271,6 @@ command_message!( impl PacketWithData for XfrBlock {} -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub enum PowerSelection { - Automatic, - V5, - V3_3, - V1_8, -} - -impl PowerOn { - #[inline(always)] - pub fn power_select(&self) -> PowerSelection { - match &self[7] { - 0 => PowerSelection::Automatic, - 1 => PowerSelection::V5, - 2 => PowerSelection::V3_3, - 3 => PowerSelection::V1_8, - _ => panic!("invalid power select parameter"), - } - } -} - #[derive(Copy, Clone, Debug, Eq, PartialEq)] #[repr(u8)] pub enum Chain {