|
|
@@ -6,15 +6,6 @@
|
|
|
#define TEXT_LABEL_ON "ON"
|
|
|
#define TEXT_LABEL_OFF "OFF"
|
|
|
|
|
|
-const char* const haptic_text[2] = {
|
|
|
- TEXT_LABEL_OFF,
|
|
|
- TEXT_LABEL_ON,
|
|
|
-};
|
|
|
-const uint32_t haptic_value[2] = {
|
|
|
- FlipBipHapticOff,
|
|
|
- FlipBipHapticOn,
|
|
|
-};
|
|
|
-
|
|
|
const char* const bip39_strength_text[3] = {
|
|
|
"12",
|
|
|
"18",
|
|
|
@@ -35,13 +26,6 @@ const uint32_t passphrase_value[2] = {
|
|
|
FlipBipPassphraseOn,
|
|
|
};
|
|
|
|
|
|
-static void flipbip_scene_settings_set_haptic(VariableItem* item) {
|
|
|
- FlipBip* app = variable_item_get_context(item);
|
|
|
- uint8_t index = variable_item_get_current_value_index(item);
|
|
|
- variable_item_set_current_value_text(item, haptic_text[index]);
|
|
|
- app->haptic = haptic_value[index];
|
|
|
-}
|
|
|
-
|
|
|
static void flipbip_scene_settings_set_bip39_strength(VariableItem* item) {
|
|
|
FlipBip* app = variable_item_get_context(item);
|
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
|
@@ -92,13 +76,6 @@ void flipbip_scene_settings_on_enter(void* context) {
|
|
|
variable_item_set_current_value_index(item, value_index);
|
|
|
variable_item_set_current_value_text(item, passphrase_text[value_index]);
|
|
|
|
|
|
- // Vibro on/off
|
|
|
- item = variable_item_list_add(
|
|
|
- app->variable_item_list, "Vibro/Haptic:", 2, flipbip_scene_settings_set_haptic, app);
|
|
|
- value_index = value_index_uint32(app->haptic, haptic_value, 2);
|
|
|
- variable_item_set_current_value_index(item, value_index);
|
|
|
- variable_item_set_current_value_text(item, haptic_text[value_index]);
|
|
|
-
|
|
|
view_dispatcher_switch_to_view(app->view_dispatcher, FlipBipViewIdSettings);
|
|
|
}
|
|
|
|