Skip to content

Commit 32f981c

Browse files
committed
fix BOOST_STANDBY pin handling
1 parent d18e18a commit 32f981c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

FeatherCAN_CircuitPython/listener-ack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# If the CAN transceiver is powered by a boost converter, turn on its supply
1313
if hasattr(board, 'BOOST_ENABLE'):
14-
standby = digitalio.DigitalInOut(board.CAN_STANDBY)
14+
standby = digitalio.DigitalInOut(board.BOOST_ENABLE)
1515
standby.switch_to_output(True)
1616

1717
can = canio.CAN(rx=board.CAN_RX, tx=board.CAN_TX, baudrate=250_000, auto_restart=True)

FeatherCAN_CircuitPython/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# If the CAN transceiver is powered by a boost converter, turn on its supply
1313
if hasattr(board, 'BOOST_ENABLE'):
14-
standby = digitalio.DigitalInOut(board.CAN_STANDBY)
14+
standby = digitalio.DigitalInOut(board.BOOST_ENABLE)
1515
standby.switch_to_output(True)
1616

1717
can = canio.CAN(rx=board.CAN_RX, tx=board.CAN_TX, baudrate=250_000, auto_restart=True)

FeatherCAN_CircuitPython/sender-ack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# If the CAN transceiver is powered by a boost converter, turn on its supply
1414
if hasattr(board, 'BOOST_ENABLE'):
15-
standby = digitalio.DigitalInOut(board.CAN_STANDBY)
15+
standby = digitalio.DigitalInOut(board.BOOST_ENABLE)
1616
standby.switch_to_output(True)
1717

1818
can = canio.CAN(rx=board.CAN_RX, tx=board.CAN_TX, baudrate=250_000, auto_restart=True)

FeatherCAN_CircuitPython/sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# If the CAN transceiver is powered by a boost converter, turn on its supply
1414
if hasattr(board, 'BOOST_ENABLE'):
15-
standby = digitalio.DigitalInOut(board.CAN_STANDBY)
15+
standby = digitalio.DigitalInOut(board.BOOST_ENABLE)
1616
standby.switch_to_output(True)
1717

1818
can = canio.CAN(rx=board.CAN_RX, tx=board.CAN_TX, baudrate=250_000, auto_restart=True)

0 commit comments

Comments
 (0)