Init mutex just to be safe

old-commit-hash: 64f6e0c1d163b94ea301b74a2bdfe77dbbbb2e5c
This commit is contained in:
Willem Melching
2020-04-08 14:09:24 -07:00
parent 24a729dca8
commit dc073f0e46
+3
View File
@@ -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);