summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-08 22:13:05 +0700
committerhathach <[email protected]>2024-04-08 22:13:05 +0700
commit366564e952b974a49a5b8da7f1d4c729bd37219d (patch)
tree1feb3be48a69c9ccab97742d1c18f9dbb244871c /src
parentc3c06484560d0102366a3a1b1101c35301009f97 (diff)
fix missing if mutex required
Diffstat (limited to 'src')
-rw-r--r--src/class/usbtmc/usbtmc_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c
index 972a450e6..286cbe108 100644
--- a/src/class/usbtmc/usbtmc_device.c
+++ b/src/class/usbtmc/usbtmc_device.c
@@ -261,7 +261,9 @@ void usbtmcd_init_cb(void)
}
bool usbtmcd_deinit(void) {
+ #if OSAL_MUTEX_REQUIRED
osal_mutex_delete(usbtmcLock);
+ #endif
return true;
}