Skip to content

Commit ec3e31b

Browse files
author
Kei
committed
added code in PortHandler for OpenCR power enable pin.
1 parent 6420c3c commit ec3e31b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utility/port_handler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ void SerialPortHandler::begin(unsigned long baud)
3737
}
3838
#elif defined(ARDUINO_OpenCR)
3939
if(port_ == Serial3){
40+
pinMode(BDPIN_DXL_PWR_EN, OUTPUT);
4041
digitalWrite(BDPIN_DXL_PWR_EN, HIGH);
4142
}
4243
#endif

0 commit comments

Comments
 (0)