Fix suffix of generated chip metadata files

stm32-data switched from YAML to JSON files in this commit:

4c1eda7c32
This commit is contained in:
Joonas Javanainen 2022-03-21 00:15:09 +02:00
parent 48f7d37e75
commit 5df4ae7baf
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -52,7 +52,7 @@ impl FilterSupported for &[(String, Vec<String>)] {
///
/// This function is slow because all the yaml files are parsed.
pub fn chip_names_and_cores() -> Vec<(String, Vec<String>)> {
glob::glob("../stm32-data/data/chips/*.yaml")
glob::glob("../stm32-data/data/chips/*.json")
.unwrap()
.filter_map(|entry| entry.map_err(|e| eprintln!("{:?}", e)).ok())
.filter_map(|entry| {