Commit d5054a33 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: drop unused argument to wrc_log_stats

The function was only called with "0" as argument. Drop it.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 40b87d1c
......@@ -30,7 +30,7 @@
void wrc_mon_gui(void);
void shell_init(void);
int wrc_log_stats(uint8_t onetime);
int wrc_log_stats(void);
void wrc_debug_printf(int subsys, const char *fmt, ...);
/* This header is included by softpll: manage wrc/wrs difference */
......
......@@ -266,7 +266,7 @@ static void wrc_mon_std_servo(void)
}
int wrc_log_stats(uint8_t onetime)
int wrc_log_stats(void)
{
static uint32_t last;
struct hal_port_state state;
......@@ -277,7 +277,7 @@ int wrc_log_stats(uint8_t onetime)
if (!last)
last = timer_get_tics();
if (!onetime && time_before(timer_get_tics(), wrc_ui_refperiod + last))
if (time_before(timer_get_tics(), wrc_ui_refperiod + last))
return 0;
struct wr_servo_state *s =
&((struct wr_data *)ppi->ext_data)->servo_state;
......
......@@ -149,7 +149,7 @@ static void ui_update(void)
wrc_ui_mode = UI_SHELL_MODE;
}
} else if (wrc_ui_mode == UI_STAT_MODE) {
wrc_log_stats(0);
wrc_log_stats();
if (uart_read_byte() == 27 || wrc_ui_refperiod == 0) {
shell_init();
wrc_ui_mode = UI_SHELL_MODE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment