add comments, use getopt, cleanup, ...
This commit is contained in:
1 parent
5b4c15c2a6
commit
34cf0696ae
3 files changed
+163
-158
No files matched your search
+15
-16
@@ -2,10 +2,10 @@
|
||||
#define MAIN_H
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
# define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
# define FALSE 0
|
||||
#endif
|
||||
|
||||
#define LCDP_BATT_HIGH 0x00
|
||||
@@ -15,8 +15,8 @@
|
||||
#define LCDP_BATT_ABSENT 0x04
|
||||
#define LCDP_BATT_UNKNOWN 0xFF
|
||||
|
||||
#define LCDP_AC_OFF 0x00
|
||||
#define LCDP_AC_ON 0x01
|
||||
#define LCDP_AC_OFF 0x00
|
||||
#define LCDP_AC_ON 0x01
|
||||
#define LCDP_AC_BACKUP 0x02
|
||||
#define LCDP_AC_UNKNOWN 0xFF
|
||||
|
||||
@@ -32,20 +32,21 @@ extern int lcd_cellhgt;
|
||||
|
||||
typedef struct mode
|
||||
{
|
||||
char which; // Which screen is it?
|
||||
int on_time; // How often to update while visible?
|
||||
int off_time; // How often to get stats while not visible?
|
||||
int show_invisible; // Send stats while not visible?
|
||||
int timer; // Time since last update
|
||||
int visible; // Can we be seen right now?
|
||||
char *longname; // Which screen is it?
|
||||
char which; // Which screen is it?
|
||||
int on_time; // How often to update while visible?
|
||||
int off_time; // How often to get stats while not visible?
|
||||
int show_invisible; // Send stats while not visible?
|
||||
int timer; // Time since last update
|
||||
int visible; // Can we be seen right now?
|
||||
} mode;
|
||||
|
||||
#define BLINK_ON 0x10
|
||||
#define BLINK_OFF 0x11
|
||||
#define BLINK_ON 0x10
|
||||
#define BLINK_OFF 0x11
|
||||
#define BACKLIGHT_OFF 0x20
|
||||
#define BACKLIGHT_ON 0x21
|
||||
#define HOLD_SCREEN 0x30
|
||||
#define CONTINUE 0x31
|
||||
#define HOLD_SCREEN 0x30
|
||||
#define CONTINUE 0x31
|
||||
|
||||
#define LCD_MAX_WIDTH 80
|
||||
#define LCD_MAX_HEIGHT 80
|
||||
@@ -62,6 +63,4 @@ const char *get_sysrelease();
|
||||
# define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user