SpenserCai 10 mesiacov pred
rodič
commit
de6e0314f2

BIN
.DS_Store


+ 8 - 8
helpers/subbrute_worker.c

@@ -82,17 +82,17 @@ bool subbrute_worker_set_step(SubBruteWorker* instance, uint64_t step) {
     return true;
     return true;
 }
 }
 
 
-bool subbrute_worker_set_opencode(SubBruteWorker* instance, uint8_t opencode) {
-    furi_assert(instance);
-    if(!subbrute_worker_can_manual_transmit(instance)) {
-        FURI_LOG_W(TAG, "Cannot set opencode during running mode");
-
-        return false;
-    }
+void subbrute_worker_set_opencode(SubBruteWorker* instance, uint8_t opencode) {
+    // furi_assert(instance);
+    // if(!subbrute_worker_can_manual_transmit(instance)) {
+    //     FURI_LOG_W(TAG, "Cannot set opencode during running mode");
+    //
+    //     return false;
+    // }
 
 
     instance->opencode = opencode;
     instance->opencode = opencode;
 
 
-    return true;
+    // return true;
 }
 }
 
 
 uint8_t subbrute_worker_get_opencode(SubBruteWorker* instance) {
 uint8_t subbrute_worker_get_opencode(SubBruteWorker* instance) {

+ 1 - 1
helpers/subbrute_worker.h

@@ -276,7 +276,7 @@ void subbrute_worker_set_te(SubBruteWorker* instance, uint32_t te);
   */
   */
 bool subbrute_worker_is_tx_allowed(SubBruteWorker* instance, uint32_t value);
 bool subbrute_worker_is_tx_allowed(SubBruteWorker* instance, uint32_t value);
 
 
-bool subbrute_worker_set_opencode(SubBruteWorker* instance, uint8_t opencode);
+void subbrute_worker_set_opencode(SubBruteWorker* instance, uint8_t opencode);
 
 
 uint8_t subbrute_worker_get_opencode(SubBruteWorker* instance);
 uint8_t subbrute_worker_get_opencode(SubBruteWorker* instance);
 
 

+ 1 - 0
scenes/subbrute_scene_setup_extra.c

@@ -257,6 +257,7 @@ static void subbrute_scene_setup_extra_init_var_list(SubBruteState* instance, bo
                 break;
                 break;
             }
             }
         }
         }
+
         if(subbrute_worker_get_is_pt2262(instance->worker)) {
         if(subbrute_worker_get_is_pt2262(instance->worker)) {
             uint8_t value_index;
             uint8_t value_index;
             item = variable_item_list_add(
             item = variable_item_list_add(

+ 5 - 5
subbrute_protocols.c

@@ -823,15 +823,15 @@ void subbrute_protocol_default_payload(
     FuriString* candidate = furi_string_alloc();
     FuriString* candidate = furi_string_alloc();
     subbrute_protocol_create_candidate_for_default(candidate, file, step, opencode);
     subbrute_protocol_create_candidate_for_default(candidate, file, step, opencode);
 
 
-#ifdef FURI_DEBUG
-    FURI_LOG_D(
+    //#ifdef FURI_DEBUG
+    FURI_LOG_W(
         TAG,
         TAG,
         "candidate: %s, step: %lld, repeat: %d, te: %s",
         "candidate: %s, step: %lld, repeat: %d, te: %s",
         furi_string_get_cstr(candidate),
         furi_string_get_cstr(candidate),
         step,
         step,
         repeat,
         repeat,
         te ? "true" : "false");
         te ? "true" : "false");
-#endif
+    //#endif
     stream_clean(stream);
     stream_clean(stream);
     if(te) {
     if(te) {
         stream_write_format(
         stream_write_format(
@@ -901,9 +901,9 @@ void subbrute_protocol_default_generate_file(
     FuriString* candidate = furi_string_alloc();
     FuriString* candidate = furi_string_alloc();
     subbrute_protocol_create_candidate_for_default(candidate, file, step, opencode);
     subbrute_protocol_create_candidate_for_default(candidate, file, step, opencode);
 
 
-#ifdef FURI_DEBUG
+    //#ifdef FURI_DEBUG
     FURI_LOG_D(TAG, "candidate: %s, step: %lld", furi_string_get_cstr(candidate), step);
     FURI_LOG_D(TAG, "candidate: %s, step: %lld", furi_string_get_cstr(candidate), step);
-#endif
+    //#endif
     stream_clean(stream);
     stream_clean(stream);
 
 
     if(te) {
     if(te) {