Add an option to start LCDd with screen rotation disabled.

This commit is contained in:
mmdolze
2011-01-19 19:08:37 +00:00
parent 561744a3cc
commit f021cc8327
6 changed files with 42 additions and 16 deletions
+5 -4
View File
@@ -88,10 +88,7 @@
#define DEFAULT_BACKLIGHT BACKLIGHT_OPEN
#define DEFAULT_HEARTBEAT HEARTBEAT_OPEN
#define DEFAULT_TITLESPEED TITLESPEED_MAX
/* All variables are set to 'unset' values*/
#define UNSET_INT -1
#define UNSET_STR "\01"
#define DEFAULT_AUTOROTATE AUTOROTATE_ON
/* Socket to bind to...
@@ -444,6 +441,10 @@ process_configfile(char *configfile)
heartbeat = config_get_tristate("Server", "Heartbeat", 0, "open", UNSET_INT);
}
if (autorotate == UNSET_INT) {
autorotate = config_get_bool("Server", "AutoRotate", 0, DEFAULT_AUTOROTATE);
}
if (titlespeed == UNSET_INT) {
int speed = config_get_int("Server", "TitleSpeed", 0, DEFAULT_TITLESPEED);