From d7ad9b874bcc35a6fcd804a321e27208cc7581df Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 11 Jun 2023 13:27:48 +0300 Subject: [PATCH] bdk: use the typedefs on jc calib --- bdk/input/joycon.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bdk/input/joycon.h b/bdk/input/joycon.h index cc1b19f..af0a849 100644 --- a/bdk/input/joycon.h +++ b/bdk/input/joycon.h @@ -92,12 +92,12 @@ typedef struct _jc_gamepad_rpt_t typedef struct _jc_calib_t { - unsigned short x_max:12; - unsigned short y_max:12; - unsigned short x_center:12; - unsigned short y_center:12; - unsigned short x_min:12; - unsigned short y_min:12; + u16 x_max:12; + u16 y_max:12; + u16 x_center:12; + u16 y_center:12; + u16 x_min:12; + u16 y_min:12; } __attribute__((packed)) jc_calib_t; void jc_init_hw();