forked from PAWPAW-Mirror/lib_xua
Reversed renaming function to avoid upversioning
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user