efm8 bridge polled mode is much faster

This commit is contained in:
Conor Patrick
2018-07-07 17:11:13 -04:00
parent a18aa99220
commit fbbf430152
10 changed files with 291 additions and 249 deletions

View File

@@ -508,10 +508,11 @@ void ctaphid_handle_packet(uint8_t * pkt_raw)
wb.cid = active_cid;
wb.cmd = CTAPHID_PING;
wb.bcnt = buffer_len();
t1 = millis();
ctaphid_write(&wb, ctap_buffer, buffer_len());
ctaphid_write(&wb, NULL,0);
t2 = millis();
printf1(TAG_TIME,"PING writeback: %d ms\n",(uint32_t)(t2-t1));
break;
case CTAPHID_WINK:

View File

@@ -32,7 +32,7 @@ int main(int argc, char * argv[])
// TAG_HID|
/*TAG_U2F|*/
/*TAG_PARSE |*/
TAG_TIME|
// TAG_TIME|
// TAG_DUMP|
/*TAG_GREEN|*/
/*TAG_RED|*/