add an deconstructor
This commit is contained in:
@@ -10,6 +10,12 @@ rfid_reader::rfid_reader()
|
|||||||
thread = std::thread(&rfid_reader::loop, this);
|
thread = std::thread(&rfid_reader::loop, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~rfid_reader::rfid_reader()
|
||||||
|
{
|
||||||
|
|
||||||
|
thread.join();
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t rfid_reader::last_id() const
|
uint32_t rfid_reader::last_id() const
|
||||||
{
|
{
|
||||||
return uid;
|
return uid;
|
||||||
|
|||||||
Reference in New Issue
Block a user