mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-03 08:25:11 +00:00
Fixup compilation failures.
This commit is contained in:
parent
7182bc41ec
commit
f3c48f100a
@ -3,8 +3,10 @@
|
||||
|
||||
#include "quantum.h"
|
||||
#include "xap.h"
|
||||
#include "keymap_introspection.h"
|
||||
|
||||
#ifdef DYNAMIC_KEYMAP_ENABLE
|
||||
# include "dynamic_keymap.h"
|
||||
# define keymap_max_layer_count() DYNAMIC_KEYMAP_LAYER_COUNT
|
||||
#else
|
||||
# define keymap_max_layer_count() keymap_layer_count()
|
||||
@ -15,7 +17,6 @@ bool xap_execute_keymap_get_layer_count(xap_token_t token) {
|
||||
return xap_respond_data(token, &ret, sizeof(ret));
|
||||
}
|
||||
|
||||
|
||||
bool xap_execute_get_keymap_keycode(xap_token_t token, const xap_route_keymap_get_keymap_keycode_arg_t *arg) {
|
||||
if (arg->layer >= keymap_max_layer_count()) {
|
||||
return false;
|
||||
@ -56,4 +57,4 @@ bool xap_execute_dynamic_encoder_set_keycode(xap_token_t token, const xap_route_
|
||||
dynamic_keymap_set_encoder(arg->layer, arg->encoder, arg->clockwise, arg->keycode);
|
||||
return xap_respond_success(token);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user