Use empty string instead of NULL if trigger key is not needed
This commit is contained in:
parent
37b2ff53f7
commit
1f179042c9
2 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@
|
|||
}
|
||||
|
||||
/* Special characters */
|
||||
#define TRIGGER_SPECIAL_US NULL
|
||||
#define TRIGGER_SPECIAL_US ""
|
||||
#define KEYS_SPECIAL_US { NULL }
|
||||
#define ATTRIBUTES_SPECIAL_US { 0 }
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ if __name__ == '__main__':
|
|||
for layer in layer_whitelist:
|
||||
print(f'/* {layer_to_description[layer]} */')
|
||||
if layer not in data['views']:
|
||||
print(f'#define TRIGGER_{map_layer(layer).upper()}_{name.upper()} NULL')
|
||||
print(f'#define TRIGGER_{map_layer(layer).upper()}_{name.upper()} ""')
|
||||
print(f'#define KEYS_{map_layer(layer).upper()}_{name.upper()} ' + '{ NULL }')
|
||||
print(f'#define ATTRIBUTES_{map_layer(layer).upper()}_{name.upper()} ' + '{ 0 }\n')
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue