Refactored main functionality to allow easier adoption into other

projects.
This commit is contained in:
2019-06-19 19:28:56 +01:00
parent 6f329f7f3d
commit 241922a16c
3 changed files with 54 additions and 9 deletions

9
main.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "U2FDevice.hpp"
#include "Architecture.hpp"
int main(int argc, char **argv) {
initialiseLights(argv[0]);
int retCode = handleTransactions(argv[0], argc == 2 ? argv[1] : STORAGE_PREFIX);
deinitialiseLights(argv[0]);
return retCode;
}