Skip to content

Commit 032d806

Browse files
aentingerfacchinm
authored andcommitted
Restoring santiago pin configuration logic deleted by @facchinm in 769a5dd [formerly b1ad94f] .
Former-commit-id: 1de57a3
1 parent 27a3265 commit 032d806

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

variants/SANTIAGO/variant.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ std::array<uint16_t, 3> getPinCfgs(const pin_size_t pin, PinCfgReq_t req) {
6262
else if(PIN_CFG_REQ_ADC == req && IS_PIN_ANALOG(*(cfg + index))) {
6363
ret[cfg_idx++] = *(cfg + index);
6464
}
65+
else if(PIN_CFG_REQ_CAN_RX == req && IS_PIN_CAN_RX(*(cfg + index))) {
66+
ret[cfg_idx++] = *(cfg + index);
67+
}
68+
else if(PIN_CFG_REQ_CAN_TX == req && IS_PIN_CAN_TX(*(cfg + index))) {
69+
ret[cfg_idx++] = *(cfg + index);
70+
}
6571

6672
if(IS_LAST_ITEM(*(cfg + index))) {
6773
thats_all = true;

0 commit comments

Comments
 (0)