add linuxJoystick input module (#10970)
* add linuxJoystick input module * close epollfd to avoid leaks
This commit is contained in:
co-authored by
GitHub
parent
91043faced
commit
9060ab4418
@@ -37,6 +37,7 @@
|
||||
#if defined(ARCH_PORTDUINO)
|
||||
#include "api/WiFiServerAPI.h"
|
||||
#include "input/LinuxInputImpl.h"
|
||||
#include "input/LinuxJoystick.h"
|
||||
#endif
|
||||
|
||||
// Working USB detection for powered/charging states on the RAK platform
|
||||
@@ -860,6 +861,8 @@ void Power::reboot()
|
||||
#ifdef __linux__
|
||||
if (aLinuxInputImpl)
|
||||
aLinuxInputImpl->deInit();
|
||||
if (aLinuxJoystick)
|
||||
aLinuxJoystick->deInit();
|
||||
#endif
|
||||
SPI.end();
|
||||
Wire.end();
|
||||
|
||||
Reference in New Issue
Block a user