Skip to content

Commit 40afcee

Browse files
aentingerfacchinm
authored andcommitted
Upgrade pin configuration logic for multiple configurations for Portenta H33.
1 parent 1de57a3 commit 40afcee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variants/PORTENTA_H33/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ std::array<uint16_t, 3> getPinCfgs(const pin_size_t pin, PinCfgReq_t req) {
7070
ret[cfg_idx++] = *(cfg + index);
7171
}
7272
else if(PIN_CFG_REQ_CAN_RX == req && IS_PIN_CAN_RX(*(cfg + index))) {
73-
return *(cfg + index);
73+
ret[cfg_idx++] = *(cfg + index);
7474
}
7575
else if(PIN_CFG_REQ_CAN_TX == req && IS_PIN_CAN_TX(*(cfg + index))) {
76-
return *(cfg + index);
76+
ret[cfg_idx++] = *(cfg + index);
7777
}
7878

7979
if(IS_LAST_ITEM(*(cfg + index))) {

0 commit comments

Comments
 (0)