Skip to content

Commit

Permalink
Decrease log verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
gdyuldin committed Sep 23, 2024
1 parent 551e7f1 commit be1e740
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
*LV_LOG_LEVEL_USER Only logs added by the user
*LV_LOG_LEVEL_NONE Do not log anything*/
#define LV_LOG_LEVEL LV_LOG_LEVEL_INFO
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN

/*1: Print the log with 'printf';
*0: User need to register a callback with `lv_log_register_print_cb()`*/
Expand Down
2 changes: 1 addition & 1 deletion src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void audio_init() {
pa_threaded_mainloop_wait(mloop);
}

LV_LOG_INFO("Conected");
LV_LOG_USER("Conected");

pa_buffer_attr attr;

Expand Down
2 changes: 1 addition & 1 deletion src/dialog_ft8.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static void save_qso() {
(qso_item.rst_r == UNKNOWN_SNR) ||
(strlen(qso_item.remote_callsign) == 0)
) {
LV_LOG_INFO("Can't save QSO - not enough information");
LV_LOG_USER("Can't save QSO - not enough information");
return;
}
time_t now = time(NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/qso_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void qso_log_import_adif(const char * path) {
pthread_t thr;

if (access(path, F_OK) != 0) {
LV_LOG_INFO("No ADI file to import");
LV_LOG_USER("No ADI file to import");
return;
}
if(pthread_create(&thr, NULL, import_adif_thread, (void*)path) != 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/rtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void add_symbol(float pwr) {
}
}

/* LV_LOG_INFO("%5.1f %i", p_avr, rx_symbol_cur); */
/* LV_LOG_USER("%5.1f %i", p_avr, rx_symbol_cur); */

rx_symbol[SYMBOL_LEN - 1] = rx_symbol_cur;

Expand Down
24 changes: 12 additions & 12 deletions src/widgets/lv_finder.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**********************
* STATIC PROTOTYPES
**********************/

static void lv_finder_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj);
static void lv_finder_event(const lv_obj_class_t * class_p, lv_event_t * e);

Expand All @@ -38,7 +38,7 @@ const lv_obj_class_t lv_finder_class = {
**********************/

lv_obj_t * lv_finder_create(lv_obj_t * parent) {
LV_LOG_INFO("begin");
LV_LOG_USER("begin");
lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent);
lv_obj_class_init_obj(obj);

Expand All @@ -53,7 +53,7 @@ void lv_finder_set_range(lv_obj_t * obj, int16_t min, int16_t max) {
LV_ASSERT_OBJ(obj, MY_CLASS);

lv_finder_t * finder = (lv_finder_t *)obj;

finder->range_min = min;
finder->range_max = max;
}
Expand All @@ -62,10 +62,10 @@ void lv_finder_set_cursor(lv_obj_t * obj, uint8_t index, int16_t value) {
LV_ASSERT_OBJ(obj, MY_CLASS);

lv_finder_t * finder = (lv_finder_t *)obj;

if (index > 0 && index <= LV_FINDER_CURSORS) {
finder->cursor[index - 1] = value;

if (index > finder->cursor_num) {
finder->cursor_num = index;
}
Expand All @@ -76,15 +76,15 @@ void lv_finder_set_width(lv_obj_t * obj, uint16_t x) {
LV_ASSERT_OBJ(obj, MY_CLASS);

lv_finder_t * finder = (lv_finder_t *)obj;

finder->width = x;
}

void lv_finder_set_value(lv_obj_t * obj, int16_t x) {
LV_ASSERT_OBJ(obj, MY_CLASS);

lv_finder_t * finder = (lv_finder_t *)obj;

finder->value = x;
}

Expand All @@ -103,7 +103,7 @@ static void lv_finder_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj
finder->range_min = 50;
finder->range_max = 3000;
finder->cursor_num = 0;

LV_TRACE_OBJ_CREATE("finished");
}

Expand Down Expand Up @@ -148,22 +148,22 @@ static void lv_finder_event(const lv_obj_class_t * class_p, lv_event_t * e) {
lv_draw_rect(draw_ctx, &draw_dsc, &area);

/* Cursors */

if (finder->cursor_num) {
lv_draw_line_dsc_t line_dsc;

lv_draw_line_dsc_init(&line_dsc);
lv_obj_init_draw_line_dsc(obj, LV_PART_INDICATOR, &line_dsc);

lv_point_t a, b;

for (uint8_t i = 0; i < finder->cursor_num; i++) {
a.x = x1 + w * (f + finder->cursor[i]) / size_hz;
a.y = area.y1;

b.x = a.x;
b.y = area.y2;

lv_draw_line(draw_ctx, &line_dsc, &a, &b);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/lv_waterfall.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const lv_obj_class_t lv_waterfall_class = {
**********************/

lv_obj_t * lv_waterfall_create(lv_obj_t * parent) {
LV_LOG_INFO("begin");
LV_LOG_USER("begin");
lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent);
lv_obj_class_init_obj(obj);

Expand Down

0 comments on commit be1e740

Please sign in to comment.