add hazardous-debug to modals bip-39

for convenient key printout during debug. flag is normally off.
This commit is contained in:
bunnie 2022-12-08 17:14:47 +08:00
parent dd82b7f32a
commit fc08c3e29d
2 changed files with 3 additions and 0 deletions

View file

@ -30,4 +30,5 @@ hosted = ["utralib/hosted"]
renode = ["utralib/renode"]
tts = []
ditherpunk = []
hazardous-debug = []
default = []

View file

@ -539,6 +539,8 @@ fn wrapped_main() -> ! {
let phrase = renderer_modal.gam.bytes_to_bip39(&config.bip39_data[..config.bip39_len as usize].to_vec())
.unwrap_or(vec![t!("bip39.invalid_bytes", xous::LANG).to_string()]);
#[cfg(feature = "hazardous-debug")]
log::info!("BIP-39 phrase: {:?}", phrase);
for word in phrase {
text.push_str(&word);