mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
fix debug logs
This commit is contained in:
@@ -266,7 +266,7 @@ void subghz_scene_receiver_config_on_enter(void* context) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(
|
||||
TAG,
|
||||
"Last frequency: %d, Preset: %d",
|
||||
"Last frequency: %ld, Preset: %ld",
|
||||
subghz->last_settings->frequency,
|
||||
subghz->last_settings->preset);
|
||||
#endif
|
||||
|
||||
@@ -195,14 +195,14 @@ SubGhz* subghz_alloc(bool alloc_for_tx_only) {
|
||||
#ifdef SUBGHZ_SAVE_DETECT_RAW_SETTING
|
||||
FURI_LOG_D(
|
||||
TAG,
|
||||
"last frequency: %d, preset: %d, detect_raw: %d",
|
||||
"last frequency: %ld, preset: %ld, detect_raw: %d",
|
||||
subghz->last_settings->frequency,
|
||||
subghz->last_settings->preset,
|
||||
subghz->last_settings->detect_raw);
|
||||
#else
|
||||
FURI_LOG_D(
|
||||
TAG,
|
||||
"last frequency: %d, preset: %d",
|
||||
"last frequency: %ld, preset: %ld",
|
||||
subghz->last_settings->frequency,
|
||||
subghz->last_settings->preset);
|
||||
#endif
|
||||
|
||||
@@ -86,7 +86,7 @@ bool subghz_history_check_sdcard(SubGhzHistory* instance) {
|
||||
FURI_LOG_W(TAG, "SD storage not installed! Status: %d", status);
|
||||
}
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_I(TAG, "Running time (check_sdcard): %d ms", furi_get_tick() - start_time);
|
||||
FURI_LOG_I(TAG, "Running time (check_sdcard): %ld ms", furi_get_tick() - start_time);
|
||||
#endif
|
||||
|
||||
return result;
|
||||
@@ -244,7 +244,7 @@ FlipperFormat* subghz_history_get_raw_data(SubGhzHistory* instance, uint16_t idx
|
||||
|
||||
if(storage_file_exists(instance->storage, furi_string_get_cstr(dir_path))) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "Exist: %s", dir_path);
|
||||
FURI_LOG_D(TAG, "Exist: %s", furi_string_get_cstr(dir_path));
|
||||
furi_delay_ms(LOG_DELAY);
|
||||
#endif
|
||||
// Set to current anyway it has NULL value
|
||||
|
||||
@@ -214,7 +214,7 @@ uint32_t subghz_frequency_find_correct(uint32_t input) {
|
||||
uint32_t current = 0;
|
||||
uint32_t result = 0;
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(TAG, "input: %d", input);
|
||||
FURI_LOG_D(TAG, "input: %ld", input);
|
||||
#endif
|
||||
for(size_t i = 0; i < sizeof(subghz_frequency_list); i++) {
|
||||
current = subghz_frequency_list[i];
|
||||
@@ -296,7 +296,7 @@ bool subghz_frequency_analyzer_input(InputEvent* event, void* context) {
|
||||
#ifdef FURI_DEBUG
|
||||
FURI_LOG_D(
|
||||
TAG,
|
||||
"frequency_to_save: %d, candidate: %d",
|
||||
"frequency_to_save: %ld, candidate: %ld",
|
||||
model->frequency_to_save,
|
||||
frequency_candidate);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user