Fix window refresh.
The window refresh does not work at all. When the mainloop exits, nothing
is done to refresh the current window.
Fix this by sending to ourself a SIGWINCH signal, so the display engine
will automatically catch the signal and refresh the current window.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
diff --git a/powerdebug.h b/powerdebug.h
index 3852ca8..7cf8220 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -26,8 +26,8 @@
#define CLOCK_OPTION 0x04
#define GPIO_OPTION 0x08
-#define VERBOSE_OPTION 0x10
-#define DUMP_OPTION 0x20
+#define VERBOSE_OPTION 0x1000
+#define DUMP_OPTION 0x2000
#define DEFAULT_OPTION (REGULATOR_OPTION | SENSOR_OPTION | \
CLOCK_OPTION | GPIO_OPTION)