Skip to content

Commit 9e210cb

Browse files
committed
Fix syntax of eeprom feature cfg attribute
1 parent 935512c commit 9e210cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ fn generate_pin_mappings(
303303
fn generate_eeprom_sizes(mcu_eeprom_size_map: &HashMap<u32, Vec<String>>) -> Result<(), String> {
304304
println!("// EEPROM sizes in bytes, generated with cube-parse");
305305
for size in mcu_eeprom_size_map.keys() {
306-
println!("#[cfg({})]", eeprom_size_to_feature(*size));
306+
println!("#[cfg(feature = \"{}\")]", eeprom_size_to_feature(*size));
307307
println!("const EEPROM_SIZE_BYTES: u32 = {};", size);
308308
}
309309
Ok(())

0 commit comments

Comments
 (0)