Add raspbian reboot and shutdown behavior

This commit is contained in:
Jonathan Bennett
2023-12-14 19:53:42 -06:00
parent ded1cbf4dd
commit 6c1db94ae7
6 changed files with 25 additions and 4 deletions

View File

@@ -23,6 +23,11 @@ LinuxInput::LinuxInput(const char *name) : concurrency::OSThread(name)
this->_originName = name;
}
void LinuxInput::deInit()
{
close(fd);
}
int32_t LinuxInput::runOnce()
{

View File

@@ -21,6 +21,7 @@ class LinuxInput : public Observable<const InputEvent *>, public concurrency::OS
{
public:
explicit LinuxInput(const char *name);
void deInit(); // Strictly for cleanly "rebooting" the binary on native
protected:
virtual int32_t runOnce() override;