Commit Graph

10 Commits

Author SHA1 Message Date
pixl
168c28d1e4 Wait for device to initialize before addDevice
For some reason, hidpp20 device names were badly set (e.g.
'Wireless Mouse MWireless' instead of 'Wireless Mouse MX Master').
Adding a 100ms delay to addDevice seems to have fixed it.
2020-07-19 01:35:26 -04:00
pixl
dde2993223 Fix crashes when logid starts as root
If logid scans every device, it will either SIGSEGV or not work at all.
This commit should fix bug #100.
2020-07-13 01:14:15 -04:00
pixl
f7638b0905 Properly output TimeoutError
Fixed issue where receiver devices aren't detected (hopefully).
2020-07-12 16:16:50 -04:00
pixl
1f3fa53721 Add workqueue system 2020-07-12 16:16:24 -04:00
pixl
1106133f3c Move logger into util/log.h 2020-07-12 16:15:48 -04:00
pixl
4ba9248038 Use safe thread class instead of std::thread 2020-07-12 16:15:48 -04:00
pixl
1d001237ba Monitor wake up/sleep events with Receiver 2020-07-12 16:15:48 -04:00
pixl
22455af615 Add GPL copyright notice in all C++ source files 2020-07-12 16:15:32 -04:00
pixl
dd75df8c18 Use consistent code style
Only files that are currently used in logid are changed.
2020-07-12 16:14:25 -04:00
pixl
ec4ae56bc4 Implement raw DeviceMonitor
Multiple things have been done in this commit; the base of the new
backend has effectively been created. This branch currently has many
vital parts commented out. Therefore, this branch is currently only
intended for debugging.
2020-07-12 16:13:40 -04:00