add an deconstructor

This commit is contained in:
Siegfried Kienzle
2017-06-15 19:00:27 +02:00
parent 25eb469203
commit 68433fc531

View File

@@ -10,6 +10,12 @@ rfid_reader::rfid_reader()
thread = std::thread(&rfid_reader::loop, this);
}
~rfid_reader::rfid_reader()
{
thread.join();
}
uint32_t rfid_reader::last_id() const
{
return uid;