We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e96d5b commit 7a5368eCopy full SHA for 7a5368e
infinite_sense_core/src/net.cpp
@@ -10,7 +10,7 @@ NetManager::NetManager(std::string target_ip, unsigned short port) : port_(port)
10
const uint64_t curr_time = static_cast<uint64_t>(
11
std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now().time_since_epoch())
12
.count());
13
- net_ptr_->sendTo(reinterpret_cast<const uint8_t*>(&curr_time), sizeof(curr_time), target_ip_, port_);
+ net_ptr_->sendTo(&curr_time, sizeof(curr_time), target_ip_, port_);
14
ptp_ = std::make_unique<Ptp>();
15
ptp_->SetNetPtr(net_ptr_, target_ip_, port_);
16
}
0 commit comments