final cleanup
This commit is contained in:
@ -6,12 +6,12 @@
|
||||
|
||||
class PCSPKdemo : public Thread {
|
||||
private:
|
||||
void (PCSPK::*melody)(); // Allow to pass a melody to play when initializing the demo
|
||||
void (*melody)(); // Allow to pass a melody to play when initializing the demo
|
||||
|
||||
public:
|
||||
PCSPKdemo(const PCSPKdemo& copy) = delete;
|
||||
|
||||
explicit PCSPKdemo(void (PCSPK::*melody)()) : Thread("PCSPKdemo"), melody(melody) {}
|
||||
PCSPKdemo(void (*melody)()) : Thread("PCSPKdemo"), melody(melody) {}
|
||||
|
||||
~PCSPKdemo() override {
|
||||
PCSPK::off();
|
||||
|
||||
Reference in New Issue
Block a user