MCPcopy Create free account
hub / github.com/SunOner/sunone_aimbot_2 / ~Arduino

Method ~Arduino

sunone_aimbot_2/mouse/Arduino.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Arduino::~Arduino()
49{
50 listening_ = false;
51 if (serial_.isOpen())
52 {
53 try { serial_.close(); }
54 catch (...) {}
55 }
56 if (listening_thread_.joinable())
57 {
58 listening_thread_.join();
59 }
60 is_open_ = false;
61}
62
63bool Arduino::isOpen() const
64{

Callers

nothing calls this directly

Calls 2

closeMethod · 0.80
isOpenMethod · 0.45

Tested by

no test coverage detected