Skip to content

Commit 6d770b6

Browse files
committed
WbX -> Wbx
1 parent 7a4f083 commit 6d770b6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

config/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ pub enum Device {
8989
#[serde(rename = "stm32l4s9")]
9090
Stm32L4S9,
9191
#[serde(rename = "stm32wbx5")]
92-
Stm32WbX5,
92+
Stm32Wbx5,
9393
}

src/device.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum Device {
2424
Stm32L4S5,
2525
Stm32L4S7,
2626
Stm32L4S9,
27-
Stm32WbX5,
27+
Stm32Wbx5,
2828
}
2929

3030
impl Device {
@@ -55,7 +55,7 @@ impl Device {
5555
item!(Self::Stm32L4S5);
5656
item!(Self::Stm32L4S7);
5757
item!(Self::Stm32L4S9);
58-
item!(Self::Stm32WbX5);
58+
item!(Self::Stm32Wbx5);
5959
Ok(())
6060
}
6161

@@ -78,7 +78,7 @@ impl Device {
7878
"stm32l4s5" => Self::Stm32L4S5,
7979
"stm32l4s7" => Self::Stm32L4S7,
8080
"stm32l4s9" => Self::Stm32L4S9,
81-
"stm32wbx5" => Self::Stm32WbX5,
81+
"stm32wbx5" => Self::Stm32Wbx5,
8282
_ => bail!(
8383
"unsupported device `{}`. Run `drone supported-devices` for the list of \
8484
available options.",
@@ -106,7 +106,7 @@ impl Device {
106106
Self::Stm32L4S5 => "stm32l4s5",
107107
Self::Stm32L4S7 => "stm32l4s7",
108108
Self::Stm32L4S9 => "stm32l4s9",
109-
Self::Stm32WbX5 => "stm32wbx5",
109+
Self::Stm32Wbx5 => "stm32wbx5",
110110
}
111111
}
112112

@@ -129,7 +129,7 @@ impl Device {
129129
Self::Stm32L4S5 => "STM32L4S5",
130130
Self::Stm32L4S7 => "STM32L4S7",
131131
Self::Stm32L4S9 => "STM32L4S9",
132-
Self::Stm32WbX5 => "STM32WBX5",
132+
Self::Stm32Wbx5 => "STM32WBX5",
133133
}
134134
}
135135

@@ -152,7 +152,7 @@ impl Device {
152152
| Self::Stm32L4S5
153153
| Self::Stm32L4S7
154154
| Self::Stm32L4S9 => "STM32L4+ Ultra Low Power",
155-
Self::Stm32WbX5 => "STM32WB multi-protocol wireless / bluetooth",
155+
Self::Stm32Wbx5 => "STM32WB multi-protocol wireless / bluetooth",
156156
}
157157
}
158158

@@ -175,7 +175,7 @@ impl Device {
175175
| Self::Stm32L4S5
176176
| Self::Stm32L4S7
177177
| Self::Stm32L4S9
178-
| Self::Stm32WbX5 => "thumbv7em-none-eabihf",
178+
| Self::Stm32Wbx5 => "thumbv7em-none-eabihf",
179179
}
180180
}
181181

@@ -198,7 +198,7 @@ impl Device {
198198
| Self::Stm32L4S5
199199
| Self::Stm32L4S7
200200
| Self::Stm32L4S9
201-
| Self::Stm32WbX5 => 0x0800_0000,
201+
| Self::Stm32Wbx5 => 0x0800_0000,
202202
}
203203
}
204204

@@ -221,7 +221,7 @@ impl Device {
221221
| Self::Stm32L4S5
222222
| Self::Stm32L4S7
223223
| Self::Stm32L4S9
224-
| Self::Stm32WbX5 => 0x2000_0000,
224+
| Self::Stm32Wbx5 => 0x2000_0000,
225225
}
226226
}
227227

@@ -244,7 +244,7 @@ impl Device {
244244
| Self::Stm32L4S5
245245
| Self::Stm32L4S7
246246
| Self::Stm32L4S9
247-
| Self::Stm32WbX5 => &["fpu"],
247+
| Self::Stm32Wbx5 => &["fpu"],
248248
}
249249
}
250250
}

0 commit comments

Comments
 (0)