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

cmd_refresh: fix warnings

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