Skip to content

Commit

Permalink
Correct the .IDtypelen string to match the .IDstring one.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosr8 authored and augustofg committed Aug 21, 2024
1 parent 6d2bf79 commit a508f3b
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit a508f3b

Please sign in to comment.