mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Prevent osd.c from calling cmsInit and cmsResync if CMS is not defined
This commit is contained in:
parent
761e1c5bf2
commit
2e2bac6da3
3 changed files with 11 additions and 3 deletions
|
@ -397,7 +397,9 @@ void osdInit(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CMS
|
||||
cmsInit();
|
||||
#endif
|
||||
|
||||
sprintf(string_buffer, "BF VERSION: %s", FC_VERSION_STRING);
|
||||
max7456Write(5, 6, string_buffer);
|
||||
|
@ -405,7 +407,9 @@ void osdInit(void)
|
|||
max7456Write(12, 8, STARTUP_HELP_TEXT2);
|
||||
max7456Write(12, 9, STARTUP_HELP_TEXT3);
|
||||
|
||||
#ifdef CMS
|
||||
cmsScreenResync(); // Was max7456RefreshAll(); may be okay.
|
||||
#endif
|
||||
|
||||
refreshTimeout = 4 * REFRESH_1S;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue