mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
Turn off loop in Disconnect
This commit is contained in:
@@ -35,6 +35,7 @@ void MobileBase::Connect(std::string dev_name, int32_t baud_rate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MobileBase::Disconnect() {
|
void MobileBase::Disconnect() {
|
||||||
|
keep_running_ = false;
|
||||||
if (can_connected_) can_if_->StopService();
|
if (can_connected_) can_if_->StopService();
|
||||||
if (serial_connected_ && serial_if_->IsOpened()) {
|
if (serial_connected_ && serial_if_->IsOpened()) {
|
||||||
serial_if_->StopService();
|
serial_if_->StopService();
|
||||||
|
|||||||
Reference in New Issue
Block a user