Shorten layout names

This commit is contained in:
Johannes Marbach 2021-09-09 13:13:43 +02:00
parent be7215134e
commit 809c8af73b
3 changed files with 9 additions and 9 deletions

View file

@ -116,7 +116,7 @@ if __name__ == '__main__':
buttons = data['buttons'] if 'buttons' in data else {}
print(f'/**\n * {name_map[name]}\n **/\n')
print(f'#define NAME_{name.upper()} "{name_map[name]}"\n')
print(f'#define NAME_{name.upper()} "{name}"\n')
for layer in layer_whitelist:
print(f'/* {layer_to_description[layer]} */')