Skip to content

Commit 3ad48ee

Browse files
committed
stm32: Enable machine.CAN for CAN2.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent ab4c476 commit 3ad48ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/stm32/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
#define MICROPY_PY_MACHINE_BITSTREAM (1)
124124
#endif
125125
#ifndef MICROPY_PY_MACHINE_CAN
126-
#ifdef MICROPY_HW_CAN1_TX
126+
#if defined(MICROPY_HW_CAN1_TX) || defined(MICROPY_HW_CAN2_TX)
127127
#define MICROPY_PY_MACHINE_CAN (1)
128128
#else
129129
#define MICROPY_PY_MACHINE_CAN (0)

0 commit comments

Comments
 (0)