Skip to content

Commit 0b1b68f

Browse files
authored
define new Regions AS923_1B and CD900_1A (helium#250)
* define new Regions AS923_1B and CD900_1A
1 parent ebed549 commit 0b1b68f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/region.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ impl<'de> Deserialize<'de> for Region {
3838
"CN779" => ProtoRegion::Cn779,
3939
"AU915" => ProtoRegion::Au915,
4040
"AS923_1" => ProtoRegion::As9231,
41+
"AS923_1B" => ProtoRegion::As9231b,
4142
"AS923_2" => ProtoRegion::As9232,
4243
"AS923_3" => ProtoRegion::As9233,
4344
"AS923_4" => ProtoRegion::As9234,
4445
"KR920" => ProtoRegion::Kr920,
4546
"IN865" => ProtoRegion::In865,
47+
"CD900_1A" => ProtoRegion::Cd9001a,
4648
unsupported => {
4749
return Err(de::Error::custom(format!(
4850
"unsupported region: {unsupported}"
@@ -67,11 +69,13 @@ impl fmt::Display for Region {
6769
ProtoRegion::Cn779 => f.write_str("CN779"),
6870
ProtoRegion::Au915 => f.write_str("AU915"),
6971
ProtoRegion::As9231 => f.write_str("AS923_1"),
72+
ProtoRegion::As9231b => f.write_str("AS923_1B"),
7073
ProtoRegion::As9232 => f.write_str("AS923_2"),
7174
ProtoRegion::As9233 => f.write_str("AS923_3"),
7275
ProtoRegion::As9234 => f.write_str("AS923_4"),
7376
ProtoRegion::Kr920 => f.write_str("KR920"),
7477
ProtoRegion::In865 => f.write_str("IN865"),
78+
ProtoRegion::Cd9001a => f.write_str("CD900_1A"),
7579
}
7680
}
7781
}

0 commit comments

Comments
 (0)