|
@@ -15,15 +15,6 @@ const uint32_t haptic_value[2] = {
|
|
|
FlipBipHapticOn,
|
|
FlipBipHapticOn,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const char* const led_text[2] = {
|
|
|
|
|
- TEXT_LABEL_OFF,
|
|
|
|
|
- TEXT_LABEL_ON,
|
|
|
|
|
-};
|
|
|
|
|
-const uint32_t led_value[2] = {
|
|
|
|
|
- FlipBipLedOff,
|
|
|
|
|
- FlipBipLedOn,
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
const char* const bip39_strength_text[3] = {
|
|
const char* const bip39_strength_text[3] = {
|
|
|
"12",
|
|
"12",
|
|
|
"18",
|
|
"18",
|
|
@@ -51,13 +42,6 @@ static void flipbip_scene_settings_set_haptic(VariableItem* item) {
|
|
|
app->haptic = haptic_value[index];
|
|
app->haptic = haptic_value[index];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-static void flipbip_scene_settings_set_led(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, led_text[index]);
|
|
|
|
|
- app->led = led_value[index];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
static void flipbip_scene_settings_set_bip39_strength(VariableItem* item) {
|
|
static void flipbip_scene_settings_set_bip39_strength(VariableItem* item) {
|
|
|
FlipBip* app = variable_item_get_context(item);
|
|
FlipBip* app = variable_item_get_context(item);
|
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
@@ -115,13 +99,6 @@ void flipbip_scene_settings_on_enter(void* context) {
|
|
|
variable_item_set_current_value_index(item, value_index);
|
|
variable_item_set_current_value_index(item, value_index);
|
|
|
variable_item_set_current_value_text(item, haptic_text[value_index]);
|
|
variable_item_set_current_value_text(item, haptic_text[value_index]);
|
|
|
|
|
|
|
|
- // LED Effects on/off
|
|
|
|
|
- item = variable_item_list_add(
|
|
|
|
|
- app->variable_item_list, "LED FX:", 2, flipbip_scene_settings_set_led, app);
|
|
|
|
|
- value_index = value_index_uint32(app->led, led_value, 2);
|
|
|
|
|
- variable_item_set_current_value_index(item, value_index);
|
|
|
|
|
- variable_item_set_current_value_text(item, led_text[value_index]);
|
|
|
|
|
-
|
|
|
|
|
view_dispatcher_switch_to_view(app->view_dispatcher, FlipBipViewIdSettings);
|
|
view_dispatcher_switch_to_view(app->view_dispatcher, FlipBipViewIdSettings);
|
|
|
}
|
|
}
|
|
|
|
|
|