bug fixes, now it boots application

This commit is contained in:
Conor Patrick
2018-12-02 20:30:28 -05:00
parent ac7950f4c4
commit 9ff5dc6373
11 changed files with 104 additions and 114 deletions

View File

@@ -61,11 +61,15 @@ int main(int argc, char * argv[])
device_init();
printf1(TAG_GEN,"init device\n");
printf1(TAG_GEN,"init ctaphid\n");
ctaphid_init();
usbhid_init();
printf1(TAG_GEN,"init usb\n");
ctaphid_init();
printf1(TAG_GEN,"init ctaphid\n");
printf1(TAG_GEN,"init ctap\n");
ctap_init();
printf1(TAG_GEN,"init ctap\n");
memset(hidmsg,0,sizeof(hidmsg));
@@ -76,7 +80,6 @@ int main(int argc, char * argv[])
{
if (millis() - t1 > 100)
{
/*printf1(TAG_GEN,"heartbeat %ld\n", beat++);*/
heartbeat();
t1 = millis();
}