فهرست منبع

add new protocols in BF existing dump

MX 1 سال پیش
والد
کامیت
34f16521cb
3فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 1 2
      subbrute_i.h
  2. 3 0
      subbrute_protocols.c
  3. 5 1
      subbrute_protocols.h

+ 1 - 2
subbrute_i.h

@@ -31,7 +31,7 @@
 #include "views/subbrute_attack_view.h"
 #include "views/subbrute_main_view.h"
 
-#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.D"
+#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.E"
 
 #ifdef FURI_DEBUG
 //#define SUBBRUTE_FAST_TRACK false
@@ -74,7 +74,6 @@ struct SubBruteState {
     VariableItemList* var_list;
     DialogsApp* dialogs;
 
-
     char text_store[SUBBRUTE_MAX_LEN_NAME]; /**< Text store */
     FuriString* file_path;
 

+ 3 - 0
subbrute_protocols.c

@@ -541,6 +541,9 @@ static const char* subbrute_protocol_file_types[] = {
     [PT2260FileProtocol] = "Princeton",
     [HoneywellFileProtocol] = "Honeywell",
     [HoltekFileProtocol] = "Holtek_HT12X",
+    [LegrandFileProtocol] = "Legrand",
+    [HollarmileProtocol] = "Hollarm",
+    [GangQiFileProtocol] = "GangQi",
     [UnknownFileProtocol] = "Unknown"};
 
 /**

+ 5 - 1
subbrute_protocols.h

@@ -57,6 +57,9 @@ typedef enum {
     PT2260FileProtocol,
     HoneywellFileProtocol,
     HoltekFileProtocol,
+    LegrandFileProtocol,
+    HollarmileProtocol,
+    GangQiFileProtocol,
     UnknownFileProtocol,
     TotalFileProtocol,
 } SubBruteFileProtocol;
@@ -360,4 +363,5 @@ void subbrute_protocol_file_generate_file(
  *
  * @return The maximum value that can be generated based on the attack parameters (uint64_t).
  */
-uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);
+uint64_t
+    subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);