mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 04:41:28 +00:00
Fixup compilation failures.
This commit is contained in:
parent
7182bc41ec
commit
f3c48f100a
@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
#include "xap.h"
|
#include "xap.h"
|
||||||
|
#include "keymap_introspection.h"
|
||||||
|
|
||||||
#ifdef DYNAMIC_KEYMAP_ENABLE
|
#ifdef DYNAMIC_KEYMAP_ENABLE
|
||||||
|
# include "dynamic_keymap.h"
|
||||||
# define keymap_max_layer_count() DYNAMIC_KEYMAP_LAYER_COUNT
|
# define keymap_max_layer_count() DYNAMIC_KEYMAP_LAYER_COUNT
|
||||||
#else
|
#else
|
||||||
# define keymap_max_layer_count() keymap_layer_count()
|
# 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));
|
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) {
|
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()) {
|
if (arg->layer >= keymap_max_layer_count()) {
|
||||||
return false;
|
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);
|
dynamic_keymap_set_encoder(arg->layer, arg->encoder, arg->clockwise, arg->keycode);
|
||||||
return xap_respond_success(token);
|
return xap_respond_success(token);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user