diff --git a/keyboards/decent/numpad/config.h b/keyboards/decent/numpad/config.h index 07d712dab943..f5114d3ce03a 100644 --- a/keyboards/decent/numpad/config.h +++ b/keyboards/decent/numpad/config.h @@ -5,4 +5,4 @@ #define JOYSTICK_AXIS_COUNT 4 #define JOYSTICK_BUTTON_COUNT 10 -#define JOYSTICK_HAS_HAT \ No newline at end of file +#define JOYSTICK_HAS_HAT diff --git a/keyboards/decent/numpad/keyboard.json b/keyboards/decent/numpad/keyboard.json index 745b639a6f15..eb45c72232ff 100644 --- a/keyboards/decent/numpad/keyboard.json +++ b/keyboards/decent/numpad/keyboard.json @@ -145,4 +145,4 @@ ], "driver": "ws2812" } -} \ No newline at end of file +} diff --git a/keyboards/decent/numpad/numpad.c b/keyboards/decent/numpad/numpad.c index 3856ca5fc88c..5a8b0327461b 100644 --- a/keyboards/decent/numpad/numpad.c +++ b/keyboards/decent/numpad/numpad.c @@ -77,7 +77,7 @@ void housekeeping_task_kb(void) { else { joystick_set_hat(-1); } - int analog = analogReadPin(GP26); + int16_t analog = analogReadPin(GP26); joystick_set_axis(0, analog); analog = analogReadPin(GP27); joystick_set_axis(1, analog); @@ -108,4 +108,4 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) { } return false; -} \ No newline at end of file +}