|
|
@ -16,8 +16,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); |
|
|
|
|
|
|
|
|
|
|
|
#include <sys/util.h> // CLAMP |
|
|
|
#include <sys/util.h> // CLAMP |
|
|
|
|
|
|
|
|
|
|
|
//TODO: probably a better flag to use here
|
|
|
|
#if !defined(CONFIG_ZMK_SPLIT) || defined(CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL) |
|
|
|
#if(CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL) |
|
|
|
|
|
|
|
#if CONFIG_MINIMAL_LIBC |
|
|
|
#if CONFIG_MINIMAL_LIBC |
|
|
|
static float powf(float base, float exponent) { |
|
|
|
static float powf(float base, float exponent) { |
|
|
|
// poor man's power implementation rounds the exponent down to the nearest integer.
|
|
|
|
// poor man's power implementation rounds the exponent down to the nearest integer.
|
|
|
@ -104,4 +103,4 @@ int zmk_mouse_tick_listener(const zmk_event_t *eh) { |
|
|
|
ZMK_LISTENER(zmk_mouse_tick_listener, zmk_mouse_tick_listener); |
|
|
|
ZMK_LISTENER(zmk_mouse_tick_listener, zmk_mouse_tick_listener); |
|
|
|
ZMK_SUBSCRIPTION(zmk_mouse_tick_listener, zmk_mouse_tick); |
|
|
|
ZMK_SUBSCRIPTION(zmk_mouse_tick_listener, zmk_mouse_tick); |
|
|
|
|
|
|
|
|
|
|
|
#endif /* CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL */ |
|
|
|
#endif /* !defined(CONFIG_ZMK_SPLIT) || defined(CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL) */ |