mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 09:03:53 +08:00
Init mutex just to be safe
This commit is contained in:
@@ -919,6 +919,9 @@ int main() {
|
||||
loopback_can = true;
|
||||
}
|
||||
|
||||
err = pthread_mutex_init(&usb_lock, NULL);
|
||||
assert(err == 0);
|
||||
|
||||
// init libusb
|
||||
err = libusb_init(&ctx);
|
||||
assert(err == 0);
|
||||
|
||||
Reference in New Issue
Block a user