Calling hid_init only once

Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
Jacki 2023-12-19 09:30:39 +01:00
parent 3914214af0
commit b77e27de08
No known key found for this signature in database
GPG key ID: B404184796354C5E

View file

@ -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;
}