Adjusting code to work with the emulated interface.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -19,17 +19,21 @@
|
||||
#include "file.h"
|
||||
#include "fido.h"
|
||||
#include "ctap.h"
|
||||
#ifndef ENABLE_EMULATION
|
||||
#include "bsp/board.h"
|
||||
#endif
|
||||
|
||||
extern void scan_all();
|
||||
|
||||
int cbor_reset() {
|
||||
#ifndef ENABLE_EMULATION
|
||||
#if defined(ENABLE_POWER_ON_RESET) && ENABLE_POWER_ON_RESET==1
|
||||
if (board_millis() > 10000)
|
||||
return CTAP2_ERR_NOT_ALLOWED;
|
||||
#endif
|
||||
if (wait_button_pressed() == true)
|
||||
return CTAP2_ERR_USER_ACTION_TIMEOUT;
|
||||
#endif
|
||||
initialize_flash(true);
|
||||
init_fido();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user