From 4b8fce4ab57dedf766d3145d11ac281dbfdc75ba Mon Sep 17 00:00:00 2001 From: euquiq <31453004+euquiq@users.noreply.github.com> Date: Tue, 2 Jun 2020 20:41:27 -0300 Subject: [PATCH] Updated Configuration Parameters (markdown) --- Configuration-Parameters.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Configuration-Parameters.md b/Configuration-Parameters.md index 2cb6c57..d76c146 100644 --- a/Configuration-Parameters.md +++ b/Configuration-Parameters.md @@ -21,4 +21,20 @@ These two new boolean parameters have been added into the `uint32_t ui_config` v * 30 (HAVOC)Login * 29 (HAVOC)Start in stealth mode * 28 (**MAYHEM H1 Branch**)Place a back ("..") button in each menu -* 27 (**MAYHEM H1 Branch**)Use speaker output (H1 model accepts a speaker) \ No newline at end of file +* 27 (**MAYHEM H1 Branch**)Use speaker output (H1 model accepts a speaker) + +### Using this two new booleans + +They can be reached from anywhere by adding (if not already there) this include: + +`#include "portapack_persistent_memory.hpp"` + +and then you can check the configuration status for each parameter with: + +`portapack::persistent_memory::config_backbutton()` + +and + +`portapack::persistent_memory::config_speaker()` + +They return either TRUE or FALSE, depending on how they've been configured. \ No newline at end of file