Skip to content

Commit

Permalink
Add option to disable power cycle on reset via Commissioner.
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Dec 1, 2024
1 parent 3148649 commit 5faab16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pico-keys-sdk
Submodule pico-keys-sdk updated 1 files
+1 −0 src/fs/phy.h
3 changes: 2 additions & 1 deletion src/fido/cbor_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
#ifdef ESP_PLATFORM
#include "esp_compat.h"
#endif
#include "fs/phy.h"

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) {
if (!(phy_data.opts & PHY_OPT_DISABLE_POWER_RESET) && board_millis() > 10000) {
return CTAP2_ERR_NOT_ALLOWED;
}
#endif
Expand Down

0 comments on commit 5faab16

Please sign in to comment.