hdxs: Is really an HDXB 1.0.1 apparently

Also update enum hdxs_rgb_light_idx to start from 0 since that's what the function does
This commit is contained in:
Will Xyen 2020-07-10 11:06:13 -07:00
parent 4816fb809d
commit 62bb717582
2 changed files with 17 additions and 16 deletions

View File

@ -105,11 +105,11 @@ static void ac_io_emu_hdxs_cmd_send_version(
resp.cmd.version.type = ac_io_u32(AC_IO_NODE_TYPE_LED_STRIP); resp.cmd.version.type = ac_io_u32(AC_IO_NODE_TYPE_LED_STRIP);
resp.cmd.version.flag = 0x00; resp.cmd.version.flag = 0x00;
resp.cmd.version.major = 0x01; resp.cmd.version.major = 0x01;
resp.cmd.version.minor = 0x06; resp.cmd.version.minor = 0x00;
resp.cmd.version.revision = 0x00; resp.cmd.version.revision = 0x01;
memcpy( memcpy(
resp.cmd.version.product_code, resp.cmd.version.product_code,
"HDXS", "HDXB",
sizeof(resp.cmd.version.product_code)); sizeof(resp.cmd.version.product_code));
strncpy(resp.cmd.version.date, __DATE__, sizeof(resp.cmd.version.date)); strncpy(resp.cmd.version.date, __DATE__, sizeof(resp.cmd.version.date));
strncpy(resp.cmd.version.time, __TIME__, sizeof(resp.cmd.version.time)); strncpy(resp.cmd.version.time, __TIME__, sizeof(resp.cmd.version.time));

View File

@ -52,19 +52,20 @@ enum hdxs_light_bit {
LIGHT_HD_P2_LEFT_RIGHT = 0x0D, LIGHT_HD_P2_LEFT_RIGHT = 0x0D,
}; };
enum hdxs_rgb_light_bit { // the indexing starts from 0x20 if you're looking in geninput
LIGHT_HD_P1_SPEAKER_F_R = 0x20, enum hdxs_rgb_light_idx {
LIGHT_HD_P1_SPEAKER_F_G = 0x21, LIGHT_HD_P1_SPEAKER_F_R = 0x00,
LIGHT_HD_P1_SPEAKER_F_B = 0x22, LIGHT_HD_P1_SPEAKER_F_G = 0x01,
LIGHT_HD_P2_SPEAKER_F_R = 0x23, LIGHT_HD_P1_SPEAKER_F_B = 0x02,
LIGHT_HD_P2_SPEAKER_F_G = 0x24, LIGHT_HD_P2_SPEAKER_F_R = 0x03,
LIGHT_HD_P2_SPEAKER_F_B = 0x25, LIGHT_HD_P2_SPEAKER_F_G = 0x04,
LIGHT_HD_P1_SPEAKER_W_R = 0x26, LIGHT_HD_P2_SPEAKER_F_B = 0x05,
LIGHT_HD_P1_SPEAKER_W_G = 0x27, LIGHT_HD_P1_SPEAKER_W_R = 0x06,
LIGHT_HD_P1_SPEAKER_W_B = 0x28, LIGHT_HD_P1_SPEAKER_W_G = 0x07,
LIGHT_HD_P2_SPEAKER_W_R = 0x29, LIGHT_HD_P1_SPEAKER_W_B = 0x08,
LIGHT_HD_P2_SPEAKER_W_G = 0x2A, LIGHT_HD_P2_SPEAKER_W_R = 0x09,
LIGHT_HD_P2_SPEAKER_W_B = 0x2B, LIGHT_HD_P2_SPEAKER_W_G = 0x0A,
LIGHT_HD_P2_SPEAKER_W_B = 0x0B,
}; };
enum extio_light_bit { enum extio_light_bit {