File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77namespace infinite_sense {
88
9- namespace {
109constexpr char func_name[] = " f" ;
1110constexpr char func_type_a[] = " a" ;
1211constexpr char func_type_b[] = " b" ;
13- } // namespace
1412
15- void Ptp::SetUsbPtr (const std::shared_ptr<serial::Serial>& serial_ptr) {
16- serial_ptr_ = serial_ptr;
17- }
13+ void Ptp::SetUsbPtr (const std::shared_ptr<serial::Serial>& serial_ptr) { serial_ptr_ = serial_ptr; }
1814
1915void Ptp::SetNetPtr (const std::shared_ptr<UDPSocket>& net_ptr, const std::string& target_ip,
2016 const unsigned short port) {
@@ -95,8 +91,7 @@ void Ptp::SendJson(const nlohmann::json& data) const {
9591}
9692
9793uint64_t Ptp::GetCurrentTimeUs () {
98- return std::chrono::duration_cast<std::chrono::microseconds>(
99- std::chrono::system_clock::now ().time_since_epoch ())
94+ return std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now ().time_since_epoch ())
10095 .count ();
10196}
10297
You can’t perform that action at this time.
0 commit comments