summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/keymaps/joystick/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/onekey/keymaps/joystick/keymap.c')
-rw-r--r--keyboards/handwired/onekey/keymaps/joystick/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/handwired/onekey/keymaps/joystick/keymap.c b/keyboards/handwired/onekey/keymaps/joystick/keymap.c
index 6463900b7b..3bcdf2c58e 100644
--- a/keyboards/handwired/onekey/keymaps/joystick/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/joystick/keymap.c
@@ -8,7 +8,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT_ortho_1x1(JS_0)
};
-void matrix_scan_user() {
+void matrix_scan_user(void) {
int16_t val = (((uint32_t)timer_read() % 5000 - 2500) * 255) / 5000;
joystick_set_axis(1, val);
}