From 6d770b65c853537540ec1a7c1b004cf13ae0f5aa Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Mon, 30 Sep 2019 11:22:46 +0200 Subject: [PATCH] WbX -> Wbx --- config/src/config.rs | 2 +- src/device.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/src/config.rs b/config/src/config.rs index 49a309b..ea09883 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -89,5 +89,5 @@ pub enum Device { #[serde(rename = "stm32l4s9")] Stm32L4S9, #[serde(rename = "stm32wbx5")] - Stm32WbX5, + Stm32Wbx5, } diff --git a/src/device.rs b/src/device.rs index 38ea7d6..c5f7a91 100644 --- a/src/device.rs +++ b/src/device.rs @@ -24,7 +24,7 @@ pub enum Device { Stm32L4S5, Stm32L4S7, Stm32L4S9, - Stm32WbX5, + Stm32Wbx5, } impl Device { @@ -55,7 +55,7 @@ impl Device { item!(Self::Stm32L4S5); item!(Self::Stm32L4S7); item!(Self::Stm32L4S9); - item!(Self::Stm32WbX5); + item!(Self::Stm32Wbx5); Ok(()) } @@ -78,7 +78,7 @@ impl Device { "stm32l4s5" => Self::Stm32L4S5, "stm32l4s7" => Self::Stm32L4S7, "stm32l4s9" => Self::Stm32L4S9, - "stm32wbx5" => Self::Stm32WbX5, + "stm32wbx5" => Self::Stm32Wbx5, _ => bail!( "unsupported device `{}`. Run `drone supported-devices` for the list of \ available options.", @@ -106,7 +106,7 @@ impl Device { Self::Stm32L4S5 => "stm32l4s5", Self::Stm32L4S7 => "stm32l4s7", Self::Stm32L4S9 => "stm32l4s9", - Self::Stm32WbX5 => "stm32wbx5", + Self::Stm32Wbx5 => "stm32wbx5", } } @@ -129,7 +129,7 @@ impl Device { Self::Stm32L4S5 => "STM32L4S5", Self::Stm32L4S7 => "STM32L4S7", Self::Stm32L4S9 => "STM32L4S9", - Self::Stm32WbX5 => "STM32WBX5", + Self::Stm32Wbx5 => "STM32WBX5", } } @@ -152,7 +152,7 @@ impl Device { | Self::Stm32L4S5 | Self::Stm32L4S7 | Self::Stm32L4S9 => "STM32L4+ Ultra Low Power", - Self::Stm32WbX5 => "STM32WB multi-protocol wireless / bluetooth", + Self::Stm32Wbx5 => "STM32WB multi-protocol wireless / bluetooth", } } @@ -175,7 +175,7 @@ impl Device { | Self::Stm32L4S5 | Self::Stm32L4S7 | Self::Stm32L4S9 - | Self::Stm32WbX5 => "thumbv7em-none-eabihf", + | Self::Stm32Wbx5 => "thumbv7em-none-eabihf", } } @@ -198,7 +198,7 @@ impl Device { | Self::Stm32L4S5 | Self::Stm32L4S7 | Self::Stm32L4S9 - | Self::Stm32WbX5 => 0x0800_0000, + | Self::Stm32Wbx5 => 0x0800_0000, } } @@ -221,7 +221,7 @@ impl Device { | Self::Stm32L4S5 | Self::Stm32L4S7 | Self::Stm32L4S9 - | Self::Stm32WbX5 => 0x2000_0000, + | Self::Stm32Wbx5 => 0x2000_0000, } } @@ -244,7 +244,7 @@ impl Device { | Self::Stm32L4S5 | Self::Stm32L4S7 | Self::Stm32L4S9 - | Self::Stm32WbX5 => &["fpu"], + | Self::Stm32Wbx5 => &["fpu"], } } }