mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-18 10:36:23 +00:00
Also match 1.0 and 1.1 strings for MacVersion.
This commit is contained in:
parent
341ac828b0
commit
7890dc7539
@ -228,12 +228,12 @@ impl FromStr for MacVersion {
|
|||||||
|
|
||||||
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
|
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
|
||||||
Ok(match s {
|
Ok(match s {
|
||||||
"1.0.0" => MacVersion::LORAWAN_1_0_0,
|
"1.0.0" | "1.0" => MacVersion::LORAWAN_1_0_0,
|
||||||
"1.0.1" => MacVersion::LORAWAN_1_0_1,
|
"1.0.1" => MacVersion::LORAWAN_1_0_1,
|
||||||
"1.0.2" => MacVersion::LORAWAN_1_0_2,
|
"1.0.2" => MacVersion::LORAWAN_1_0_2,
|
||||||
"1.0.3" => MacVersion::LORAWAN_1_0_3,
|
"1.0.3" => MacVersion::LORAWAN_1_0_3,
|
||||||
"1.0.4" => MacVersion::LORAWAN_1_0_4,
|
"1.0.4" => MacVersion::LORAWAN_1_0_4,
|
||||||
"1.1.0" => MacVersion::LORAWAN_1_1_0,
|
"1.1.0" | "1.1" => MacVersion::LORAWAN_1_1_0,
|
||||||
_ => {
|
_ => {
|
||||||
return Err(anyhow!("Unexpected MacVersion: {}", s));
|
return Err(anyhow!("Unexpected MacVersion: {}", s));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user