|
|
@@ -27,16 +27,17 @@ void subbrute_scene_setup_attack_on_enter(void* context) {
|
|
|
SubBruteState* instance = (SubBruteState*)context;
|
|
|
SubBruteAttackView* view = instance->view_attack;
|
|
|
|
|
|
+ notification_message(instance->notifications, &sequence_reset_vibro);
|
|
|
+
|
|
|
#ifdef FURI_DEBUG
|
|
|
- FURI_LOG_D(TAG, "Enter Attack: %d", instance->device->attack);
|
|
|
+ FURI_LOG_D(TAG, "Enter Attack: %s", subbrute_protocol_name(instance->device->attack));
|
|
|
#endif
|
|
|
|
|
|
subbrute_worker_set_callback(
|
|
|
instance->worker, subbrute_scene_setup_attack_device_state_changed, context);
|
|
|
-
|
|
|
if(subbrute_worker_is_running(instance->worker)) {
|
|
|
- instance->device->key_index = subbrute_worker_get_step(instance->worker);
|
|
|
subbrute_worker_stop(instance->worker);
|
|
|
+ instance->device->key_index = subbrute_worker_get_step(instance->worker);
|
|
|
}
|
|
|
|
|
|
subbrute_attack_view_init_values(
|
|
|
@@ -59,6 +60,7 @@ void subbrute_scene_setup_attack_on_exit(void* context) {
|
|
|
SubBruteState* instance = (SubBruteState*)context;
|
|
|
subbrute_worker_stop(instance->worker);
|
|
|
notification_message(instance->notifications, &sequence_blink_stop);
|
|
|
+ notification_message(instance->notifications, &sequence_reset_vibro);
|
|
|
}
|
|
|
|
|
|
bool subbrute_scene_setup_attack_on_event(void* context, SceneManagerEvent event) {
|