Add an option to start LCDd with screen rotation disabled.
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user