Calling hid_init only once
Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
parent
3914214af0
commit
b77e27de08
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
static size_t hid_device_counter = 0;
|
||||
|
||||
bool device_init() {
|
||||
if (0 != hid_init()) {
|
||||
if ((!hid_device_counter) && (0 != hid_init())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue