Remove debug printfs

This commit is contained in:
Ciaran Woodward
2021-12-21 12:18:57 +00:00
parent b88342ab2b
commit 703a277059

View File

@@ -152,17 +152,12 @@ void hidCaptureReportTime( const unsigned id, const unsigned time )
void hidClearChangePending( const unsigned id ) void hidClearChangePending( const unsigned id )
{ {
printf("ccp%d", id);
for( size_t idx = 0U; idx < HID_REPORT_COUNT; ++idx) { for( size_t idx = 0U; idx < HID_REPORT_COUNT; ++idx) {
if(( id == 0U ) || ( id == hidGetElementReportId( hidReports[ idx ]->location ))) { if(( id == 0U ) || ( id == hidGetElementReportId( hidReports[ idx ]->location ))) {
if( !s_hidChangePending[ idx ] )
printf("<already>");
s_hidChangePending[ idx ] = 0U; s_hidChangePending[ idx ] = 0U;
printf("y");
break; break;
} }
} }
printf("\n");
} }
static unsigned hidGetElementBitLocation( const unsigned short location ) static unsigned hidGetElementBitLocation( const unsigned short location )
@@ -421,7 +416,6 @@ void hidSetChangePending( const unsigned id )
{ {
for( size_t idx = 0U; idx < HID_REPORT_COUNT; ++idx) { for( size_t idx = 0U; idx < HID_REPORT_COUNT; ++idx) {
if( id == hidGetElementReportId( hidReports[ idx ]->location )) { if( id == hidGetElementReportId( hidReports[ idx ]->location )) {
printf("Set cp idx %d\n", idx);
s_hidChangePending[ idx ] = 1U; s_hidChangePending[ idx ] = 1U;
break; break;
} }