Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions spectrum_analyzer/spectrum_analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void spectrum_analyzer_calculate_frequencies(SpectrumAnalyzerModel* model) {
model->max_rssi = -200.0;
model->max_rssi_dec = 0;

FURI_LOG_D("Spectrum", "setup_frequencies - max_hz: %u - min_hz: %u", max_hz, min_hz);
FURI_LOG_D("Spectrum", "setup_frequencies - max_hz: %ld - min_hz: %ld", max_hz, min_hz);
FURI_LOG_D("Spectrum", "center_freq: %u", model->center_freq);
FURI_LOG_D(
"Spectrum",
Expand Down Expand Up @@ -450,7 +450,7 @@ int32_t spectrum_analyzer_app(void* p) {
break;
case InputKeyRight:
model->center_freq += hstep;
FURI_LOG_D("Spectrum", "center_freq: %lu", model->center_freq);
FURI_LOG_D("Spectrum", "center_freq: %d", model->center_freq);
spectrum_analyzer_calculate_frequencies(model);
spectrum_analyzer_worker_set_frequencies(
spectrum_analyzer->worker, model->channel0_frequency, model->spacing, model->width);
Expand All @@ -460,7 +460,9 @@ int32_t spectrum_analyzer_app(void* p) {
spectrum_analyzer_calculate_frequencies(model);
spectrum_analyzer_worker_set_frequencies(
spectrum_analyzer->worker, model->channel0_frequency, model->spacing, model->width);
FURI_LOG_D("Spectrum", "center_freq: %lu", model->center_freq);
FURI_LOG_D("Spectrum", "center_freq: %d", model->center_freq);
break;
default:
break;
case InputKeyOk: {
switch(model->width) {
Expand Down Expand Up @@ -510,4 +512,4 @@ int32_t spectrum_analyzer_app(void* p) {
spectrum_analyzer_free(spectrum_analyzer);

return 0;
}
}
4 changes: 2 additions & 2 deletions spectrum_analyzer/spectrum_analyzer_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void spectrum_analyzer_worker_set_frequencies(

FURI_LOG_D(
"SpectrumWorker",
"spectrum_analyzer_worker_set_frequencies - channel0_frequency= %u - spacing = %u - width = %u",
"spectrum_analyzer_worker_set_frequencies - channel0_frequency= %lu - spacing = %lu - width = %u",
channel0_frequency,
spacing,
width);
Expand All @@ -195,4 +195,4 @@ void spectrum_analyzer_worker_stop(SpectrumAnalyzerWorker* instance) {

instance->should_work = false;
furi_thread_join(instance->thread);
}
}