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
+3 -3
View File
@@ -26,7 +26,7 @@
/* Local functions */
int compare_priority(void *one, void *two);
bool autorotate = 1; /* If on, INFO and FOREGROUND screens will rotate */
bool autorotate = UNSET_INT; /* If on, INFO and FOREGROUND screens will rotate */
LinkedList *screenlist = NULL;
Screen *current_screen = NULL;
long int current_screen_start_time = 0;
@@ -103,8 +103,7 @@ screenlist_process(void)
if (!screenlist)
return;
/* Sort the list acfording to priority class */
/* Sort the list according to priority class */
LL_Sort(screenlist, compare_priority);
f = LL_GetFirst(screenlist);
@@ -147,6 +146,7 @@ screenlist_process(void)
* current one ? */
if (f->priority > s->priority) {
/* Yes, switch to that screen, job done */
report(RPT_DEBUG, "%s: High priority screen [%.40s] selected", __FUNCTION__, f->id);
screenlist_switch(f);
return;
}