From 637fa4ad79851d3b8a46f4fe11b2205423ec5f74 Mon Sep 17 00:00:00 2001 From: showson Date: Wed, 26 Nov 2025 21:04:39 +0000 Subject: [PATCH] No longer using request_value to get request type. --- common/core/src/ux_device_stack_control_request_process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/core/src/ux_device_stack_control_request_process.c b/common/core/src/ux_device_stack_control_request_process.c index 0916b435..d0ee47fb 100644 --- a/common/core/src/ux_device_stack_control_request_process.c +++ b/common/core/src/ux_device_stack_control_request_process.c @@ -97,6 +97,10 @@ /* improved interface request */ /* process with print class, */ /* resulting in version 6.3.0 */ +/* 26-11-2025 Sean Howson Modified comment(s), */ +/* Fixed initial request */ +/* filter to evaluate correct */ +/* byte of transfer request. */ /* */ /**************************************************************************/ UINT _ux_device_stack_control_request_process(UX_SLAVE_TRANSFER *transfer_request) @@ -136,7 +140,7 @@ ULONG application_data_length; /* Filter for GET_DESCRIPTOR/SET_DESCRIPTOR commands. If the descriptor to be returned is not a standard descriptor, treat the command as a CLASS command. */ - if ((request == UX_GET_DESCRIPTOR || request == UX_SET_DESCRIPTOR) && (((request_value >> 8) & UX_REQUEST_TYPE) != UX_REQUEST_TYPE_STANDARD)) + if ((request == UX_GET_DESCRIPTOR || request == UX_SET_DESCRIPTOR) && (((request_type >> 8) & UX_REQUEST_TYPE) != UX_REQUEST_TYPE_STANDARD)) { /* This request is to be handled by the class layer. */