From bbe085b73db861c6fec54842e4302b9d4902ed49 Mon Sep 17 00:00:00 2001 From: Tau Date: Mon, 25 Feb 2019 16:12:38 -0500 Subject: [PATCH] board/slider-cmd.h: Add separate Diva LED cmd The Chunithm slider has sixteen cells and fifteen (I think?) vertical lines splitting the cells. Diva does not have these lines, so presumably the LED data format is different. Need to analyze this further. --- board/slider-cmd.h | 3 ++- chunihook/slider-hook.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/slider-cmd.h b/board/slider-cmd.h index 8a19ca7..c29b155 100644 --- a/board/slider-cmd.h +++ b/board/slider-cmd.h @@ -4,9 +4,10 @@ enum { SLIDER_CMD_AUTO_SCAN = 0x01, - SLIDER_CMD_SET_LED = 0x02, + SLIDER_CMD_SET_LED_CHUNI = 0x02, SLIDER_CMD_AUTO_SCAN_START = 0x03, SLIDER_CMD_AUTO_SCAN_STOP = 0x04, + SLIDER_CMD_SET_LED_DIVA = 0x9, SLIDER_CMD_RESET = 0x10, SLIDER_CMD_GET_BOARD_INFO = 0xF0, }; diff --git a/chunihook/slider-hook.c b/chunihook/slider-hook.c index 77f82f2..7863409 100644 --- a/chunihook/slider-hook.c +++ b/chunihook/slider-hook.c @@ -123,7 +123,7 @@ static HRESULT slider_req_dispatch(const union slider_req_any *req) case SLIDER_CMD_GET_BOARD_INFO: return slider_req_get_board_info(); - case SLIDER_CMD_SET_LED: + case SLIDER_CMD_SET_LED_CHUNI: return slider_req_set_led(&req->set_led); case SLIDER_CMD_AUTO_SCAN_START: