Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the .IDtypelen string to match the .IDstring one. #224

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions port/board/afc-v4/sdr_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const SDR_type_01h_t SDR_AMC_12V = {
.reserved1 = 0x00, /* reserved */
.reserved2 = 0x00, /* reserved */
.OEM = INA3221_CHANNEL_1, /* OEM reserved */
.IDtypelen = 0xc0 | STR_SIZE(SDR_FMC1_12V_ID) , /* 8 bit ASCII, number of bytes */
.IDtypelen = 0xc0 | STR_SIZE(SDR_AMC_12V_ID) , /* 8 bit ASCII, number of bytes */
.IDstring = SDR_AMC_12V_ID /* sensor string */
};

Expand Down Expand Up @@ -589,7 +589,7 @@ const SDR_type_01h_t SDR_AMC_12V_CURR = {
.reserved1 = 0x00, /* reserved */
.reserved2 = 0x00, /* reserved */
.OEM = INA3221_CHANNEL_1, /* OEM reserved */
.IDtypelen = 0xc0 | STR_SIZE(SDR_FMC1_12V_CURR_ID) , /* 8 bit ASCII, number of bytes */
.IDtypelen = 0xc0 | STR_SIZE(SDR_AMC_12V_CURR_ID) , /* 8 bit ASCII, number of bytes */
.IDstring = SDR_AMC_12V_CURR_ID /* sensor string */
};

Expand Down Expand Up @@ -644,7 +644,7 @@ const SDR_type_01h_t SDR_RTM_12V_CURR = {
.reserved1 = 0x00, /* reserved */
.reserved2 = 0x00, /* reserved */
.OEM = INA3221_CHANNEL_2, /* OEM reserved */
.IDtypelen = 0xc0 | STR_SIZE(SDR_FMC1_12V_CURR_ID) , /* 8 bit ASCII, number of bytes */
.IDtypelen = 0xc0 | STR_SIZE(SDR_RTM_12V_CURR_ID) , /* 8 bit ASCII, number of bytes */
.IDstring = SDR_RTM_12V_CURR_ID /* sensor string */
};

Expand Down