Commit 913554dc authored by Alessandro Rubini's avatar Alessandro Rubini

cmd_refresh: fix warnings

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 9f3bcfa0
......@@ -11,26 +11,26 @@
Description: Configures time interval to update gui/stat statistics by monitor. */
#include <wrc.h>
#include "shell.h"
#include "wrc_ptp.h"
#include <syscon.h>
extern int wrc_ui_refperiod;
static int cmd_refresh(const char *args[])
int sec;
if (args[0] && !args[1]) {
fromdec(args[0], &sec);
else {
mprintf("Usage: refresh <seconds>\n");
pp_printf("Usage: refresh <seconds>\n");
return 0;
wrc_ui_refperiod = sec*TICS_PER_SECOND;
return 0;
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