mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-17 13:58:32 +00:00
Fix max value in BF dump brute
This commit is contained in:
parent
9c0391a887
commit
9152299562
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ SubBruteDevice* subbrute_device_alloc() {
|
||||||
instance->environment = subghz_environment_alloc();
|
instance->environment = subghz_environment_alloc();
|
||||||
|
|
||||||
#ifdef FURI_DEBUG
|
#ifdef FURI_DEBUG
|
||||||
subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
|
subbrute_device_attack_set_default_values(instance, SubBruteAttackLoadFile);
|
||||||
#else
|
#else
|
||||||
subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
|
subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -281,7 +281,7 @@ void subbrute_protocol_file_payload(
|
||||||
furi_string_replace_at(candidate, load_index * 3, 3, subbrute_payload_byte);
|
furi_string_replace_at(candidate, load_index * 3, 3, subbrute_payload_byte);
|
||||||
|
|
||||||
#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);
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ void subbrute_protocol_file_generate_file(
|
||||||
uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits) {
|
uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits) {
|
||||||
uint64_t max_value;
|
uint64_t max_value;
|
||||||
if(attack_type == SubBruteAttackLoadFile) {
|
if(attack_type == SubBruteAttackLoadFile) {
|
||||||
max_value = 0x3F;
|
max_value = 0xFF;
|
||||||
} else {
|
} else {
|
||||||
FuriString* max_value_s;
|
FuriString* max_value_s;
|
||||||
max_value_s = furi_string_alloc();
|
max_value_s = furi_string_alloc();
|
||||||
|
|
Loading…
Add table
Reference in a new issue