diff --git a/firmware/pinmatrix.c b/firmware/pinmatrix.c index 73ae3b405..85d5ef7ed 100644 --- a/firmware/pinmatrix.c +++ b/firmware/pinmatrix.c @@ -73,7 +73,11 @@ void pinmatrix_done(char *pin) memset(pinmatrix_perm, 'X', sizeof(pinmatrix_perm)); } +#if DEBUG_LINK + const char *pinmatrix_get(void) { return pinmatrix_perm; } + +#endif diff --git a/firmware/recovery.c b/firmware/recovery.c index 48213e0d6..bd5bda70f 100644 --- a/firmware/recovery.c +++ b/firmware/recovery.c @@ -169,6 +169,8 @@ void recovery_abort(void) } } +#if DEBUG_LINK + const char *recovery_get_fake_word(void) { return fake_word; @@ -178,3 +180,5 @@ uint32_t recovery_get_word_pos(void) { return word_pos; } + +#endif diff --git a/firmware/reset.c b/firmware/reset.c index 56d4d95f1..7e75f96ee 100644 --- a/firmware/reset.c +++ b/firmware/reset.c @@ -149,6 +149,8 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len) layoutHome(); } +#if DEBUG_LINK + uint32_t reset_get_int_entropy(uint8_t *entropy) { memcpy(entropy, int_entropy, 32); return 32; @@ -157,3 +159,5 @@ uint32_t reset_get_int_entropy(uint8_t *entropy) { const char *reset_get_word(void) { return current_word; } + +#endif