Reversed renaming function to avoid upversioning

This commit is contained in:
Angel Cascarino
2022-01-11 17:57:18 +00:00
parent 45ab345521
commit c60da7fd82
5 changed files with 5 additions and 5 deletions

View File

@@ -901,7 +901,7 @@ void XUA_Buffer_Ep(register chanend c_aud_out,
unsigned reportTime; unsigned reportTime;
tmr :> reportTime; tmr :> reportTime;
for(unsigned id = hidAreReportIdsInUse(); id < hidGetReportIdLimit(); ++id) { for(unsigned id = hidIsReportIdInUse(); id < hidGetReportIdLimit(); ++id) {
if(0U == id || (hidIsChangePending(id) || !HidIsSetIdleSilenced(id))) { if(0U == id || (hidIsChangePending(id) || !HidIsSetIdleSilenced(id))) {
hidCaptureReportTime(id, reportTime); hidCaptureReportTime(id, reportTime);
int hidDataLength = (int) UserHIDGetData(id, g_hidData); int hidDataLength = (int) UserHIDGetData(id, g_hidData);

View File

@@ -136,7 +136,7 @@ static unsigned hidGetUsagePage( const unsigned id );
*/ */
static size_t hidTranslateItem( const USB_HID_Short_Item_t* inPtr, unsigned char** outPtrPtr ); static size_t hidTranslateItem( const USB_HID_Short_Item_t* inPtr, unsigned char** outPtrPtr );
unsigned hidAreReportIdsInUse ( void ) { unsigned hidIsReportIdInUse ( void ) {
return !hidIsReportIdValid(0U); return !hidIsReportIdValid(0U);
} }

View File

@@ -124,7 +124,7 @@ typedef struct
* @retval 1 Report IDs are in use * @retval 1 Report IDs are in use
* @retval 0 Report IDs are not in use * @retval 0 Report IDs are not in use
*/ */
unsigned hidAreReportIdsInUse ( void ); unsigned hidIsReportIdInUse ( void );
/** /**
* \brief Register that a previously changed HID Report data has been sent * \brief Register that a previously changed HID Report data has been sent

View File

@@ -59,7 +59,7 @@ void test_validate_report( void ) {
} }
void test_reportid_in_use( void ) { void test_reportid_in_use( void ) {
unsigned reportIdInUse = hidAreReportIdsInUse(); unsigned reportIdInUse = hidIsReportIdInUse();
TEST_ASSERT_EQUAL_UINT( 1, reportIdInUse ); TEST_ASSERT_EQUAL_UINT( 1, reportIdInUse );
} }

View File

@@ -46,7 +46,7 @@ void test_validate_report( void ) {
} }
void test_reportid_in_use( void ) { void test_reportid_in_use( void ) {
unsigned reportIdInUse = hidAreReportIdsInUse(); unsigned reportIdInUse = hidIsReportIdInUse();
TEST_ASSERT_EQUAL_UINT( 0, reportIdInUse ); TEST_ASSERT_EQUAL_UINT( 0, reportIdInUse );
} }