summaryrefslogtreecommitdiff
path: root/examples/device/hid_composite_freertos/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-30 11:16:19 +0700
committerhathach <[email protected]>2025-10-30 11:16:19 +0700
commitec8ef7a9afbab36271b2aec1624eec35e0b42900 (patch)
treedf21335e7a914f3065cb75896a0c56a612b537f8 /examples/device/hid_composite_freertos/src
parent1cec005f8fe9eeb0cfa8e42af9245449c18ec61b (diff)
increase freertos stack size when debug is enabled
Diffstat (limited to 'examples/device/hid_composite_freertos/src')
-rw-r--r--examples/device/hid_composite_freertos/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c
index acc8f69a0..391e3c42a 100644
--- a/examples/device/hid_composite_freertos/src/main.c
+++ b/examples/device/hid_composite_freertos/src/main.c
@@ -53,7 +53,7 @@
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1)
#endif
-#define HID_STACK_SZIE 2*configMINIMAL_STACK_SIZE
+#define HID_STACK_SZIE (configMINIMAL_STACK_SIZE * (CFG_TUSB_DEBUG ? 2 : 1))
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF PROTYPES