Skip to content

Commit

Permalink
Update UserBoardController.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RBEGamer committed Mar 18, 2022
1 parent 0e2b58e commit 9fa6a9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ bool UserBoardController::init_serial_port(std::string _serial_port_file, int _b
LOG_F(INFO, "filesystem::is_symlink(_port) %s", _serial_port_file.c_str());
//GET PREFIX EG /dev/
std::string prefix = "";
const size_t slash_index = _port.find_last_of("/\\");
const size_t slash_index = _serial_port_file.find_last_of("/\\");
if(slash_index){
prefix = _serial_port_file.substr(0,slash_index) + '/';
}
Expand Down

0 comments on commit 9fa6a9f

Please sign in to comment.