diff options
-rw-r--r-- | display.c | 2 | ||||
-rw-r--r-- | powerdebug.h | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -557,7 +557,7 @@ int display_init(struct powerdebug_options *options) int i, maxx, maxy; size_t array_size = sizeof(windata) / sizeof(windata[0]); - current_win = 1 << (ffs(options->flags & DEFAULT_OPTION) - 1); + current_win = (ffs(options->flags & DEFAULT_OPTION) - 1); signal(SIGWINCH, sigwinch_handler); diff --git a/powerdebug.h b/powerdebug.h index 7cf8220..a8073a6 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -21,9 +21,9 @@ #define VERSION "0.7.3" -#define REGULATOR_OPTION 0x01 -#define SENSOR_OPTION 0x02 -#define CLOCK_OPTION 0x04 +#define CLOCK_OPTION 0x01 +#define REGULATOR_OPTION 0x02 +#define SENSOR_OPTION 0x04 #define GPIO_OPTION 0x08 #define VERBOSE_OPTION 0x1000 |