Fixup compilation failures.

This commit is contained in:
Nick Brassel 2023-03-30 08:49:10 +11:00
parent 7182bc41ec
commit f3c48f100a
No known key found for this signature in database

View File

@ -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