mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
Merge pull request #42 from romanz/debug_exclude
firmware: exclude debug functionality from release build
This commit is contained in:
commit
b4b5426e33
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user