From d515458b83bff36f6164acc097c1e0a1c51c49e1 Mon Sep 17 00:00:00 2001 From: mbanth Date: Wed, 1 Dec 2021 09:42:32 +0000 Subject: [PATCH] Add id parameter to hidClearChangePending(), hidIsChangePending() and hidSetChangePending(). Correct the name of the underlying static variable. --- lib_xua/src/hid/hid_report_descriptor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_xua/src/hid/hid_report_descriptor.c b/lib_xua/src/hid/hid_report_descriptor.c index 74517a29..c6e40e1d 100644 --- a/lib_xua/src/hid/hid_report_descriptor.c +++ b/lib_xua/src/hid/hid_report_descriptor.c @@ -13,7 +13,7 @@ #define HID_REPORT_DESCRIPTOR_MAX_LENGTH ( HID_REPORT_DESCRIPTOR_ITEM_COUNT * \ ( sizeof ( USB_HID_Short_Item_t ) - HID_REPORT_ITEM_LOCATION_SIZE )) -static unsigned hidChangePending = 0U; +static unsigned s_hidChangePending = 0U; static unsigned char hidReportDescriptor[ HID_REPORT_DESCRIPTOR_MAX_LENGTH ]; static size_t hidReportDescriptorLength = 0U; static unsigned hidReportDescriptorPrepared = 0U; @@ -124,7 +124,7 @@ static unsigned hidGetUsagePage( const unsigned id ); static size_t hidTranslateItem( const USB_HID_Short_Item_t* inPtr, unsigned char** outPtrPtr ); -void hidClearChangePending( void ) +void hidClearChangePending( const unsigned id ) { s_hidChangePending = 0U; } @@ -253,7 +253,7 @@ static unsigned hidGetUsagePage( const unsigned id ) return retVal; } -unsigned hidIsChangePending( void ) +unsigned hidIsChangePending( const unsigned id ) { return( s_hidChangePending != 0 ); } @@ -277,7 +277,7 @@ void hidResetReportDescriptor( void ) hidReportDescriptorPrepared = 0U; } -void hidSetChangePending( void ) +void hidSetChangePending( const unsigned id ) { s_hidChangePending = 1; }