mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
sub brute fixes
This commit is contained in:
parent
4cb585e4b9
commit
ae76f45339
4 changed files with 12 additions and 8 deletions
|
@ -113,7 +113,7 @@ bool subbrute_worker_start(
|
|||
instance->worker_running = res;
|
||||
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_I(TAG, "Frequency: %d", frequency);
|
||||
FURI_LOG_I(TAG, "Frequency: %ld", frequency);
|
||||
#endif
|
||||
instance->preset = preset;
|
||||
if(res) {
|
||||
|
@ -206,7 +206,7 @@ bool subbrute_worker_init_manual_transmit(
|
|||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(
|
||||
TAG,
|
||||
"subbrute_worker_init_manual_transmit. frequency: %d, protocol: %s",
|
||||
"subbrute_worker_init_manual_transmit. frequency: %ld, protocol: %s",
|
||||
frequency,
|
||||
protocol_name);
|
||||
#endif
|
||||
|
@ -254,7 +254,7 @@ bool subbrute_worker_init_manual_transmit(
|
|||
}*/
|
||||
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_I(TAG, "Frequency: %d", frequency);
|
||||
FURI_LOG_I(TAG, "Frequency: %ld", frequency);
|
||||
#endif
|
||||
|
||||
instance->transmitter = subghz_transmitter_alloc_init(
|
||||
|
|
|
@ -42,7 +42,7 @@ bool subbrute_scene_start_on_event(void* context, SceneManagerEvent event) {
|
|||
|
||||
if(event.type == SceneManagerEventTypeCustom) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "Event: %d", event.event);
|
||||
FURI_LOG_D(TAG, "Event: %ld", event.event);
|
||||
#endif
|
||||
if(event.event == SubBruteCustomEventTypeMenuSelected) {
|
||||
SubBruteAttacks attack = subbrute_main_view_get_index(instance->view_main);
|
||||
|
|
|
@ -229,7 +229,7 @@ bool subbrute_device_create_packet_parsed(SubBruteDevice* instance, uint64_t ste
|
|||
}
|
||||
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "candidate: %s, step: %d", furi_string_get_cstr(candidate), step);
|
||||
FURI_LOG_D(TAG, "candidate: %s, step: %lld", furi_string_get_cstr(candidate), step);
|
||||
#endif
|
||||
|
||||
if(small) {
|
||||
|
@ -537,7 +537,7 @@ uint8_t subbrute_device_load_from_file(SubBruteDevice* instance, FuriString* fil
|
|||
}
|
||||
instance->bit = temp_data32;
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "Bit: %d", instance->bit);
|
||||
FURI_LOG_D(TAG, "Bit: %ld", instance->bit);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -570,7 +570,7 @@ uint8_t subbrute_device_load_from_file(SubBruteDevice* instance, FuriString* fil
|
|||
// Repeat
|
||||
if(flipper_format_read_uint32(fff_data_file, "Repeat", &temp_data32, 1)) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "Repeat: %d", temp_data32);
|
||||
FURI_LOG_D(TAG, "Repeat: %ld", temp_data32);
|
||||
#endif
|
||||
instance->repeat = temp_data32;
|
||||
} else {
|
||||
|
|
|
@ -248,7 +248,11 @@ void subbrute_attack_view_init_values(
|
|||
bool is_attacking) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(
|
||||
TAG, "init, index: %d, max_value: %d, current_step: %d", index, max_value, current_step);
|
||||
TAG,
|
||||
"init, index: %d, max_value: %lld, current_step: %lld",
|
||||
index,
|
||||
max_value,
|
||||
current_step);
|
||||
#endif
|
||||
with_view_model(
|
||||
instance->view, (SubBruteAttackViewModel * model) {
|
||||
|
|
Loading…
Reference in a new issue