Skip to content

Commit b27a33f

Browse files
committed
reformat code
1 parent 8837f2e commit b27a33f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

infinite_sense_core/include/messenger.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
#pragma once
2-
#include <atomic>
32
#include <log.h>
4-
#include <mutex>
53
#include <thread>
64
#include <zmq.hpp>
7-
#include <unordered_set>
8-
#include <unordered_map>
95
#include <functional>
106

11-
#include "config.h"
12-
137
namespace infinite_sense {
148
class Messenger {
159
public:

infinite_sense_core/src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void NetManager::TimeStampSynchronization() const {
8686
while (started_) {
8787
try {
8888
ptp_->SendPtpData();
89-
std::this_thread::sleep_for(std::chrono::milliseconds(10)); // 限制频率,防止死循环占满 CPU
89+
std::this_thread::sleep_for(std::chrono::milliseconds(10));
9090
} catch (const std::exception& e) {
9191
LOG(ERROR) << "Timestamp sync error: " << e.what();
9292
}

infinite_sense_core/src/usb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ UsbManager::UsbManager(std::string port, const int baud_rate) : port_(std::move(
3131
}
3232

3333
UsbManager::~UsbManager() {
34-
Stop(); // 确保资源优雅释放
34+
Stop();
3535
}
3636

3737
void UsbManager::Start() {

0 commit comments

Comments
 (0)