mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
Init mutex just to be safe
old-commit-hash: 64f6e0c1d163b94ea301b74a2bdfe77dbbbb2e5c
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