1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Correct switch indentation and function name

This commit is contained in:
Dan Nixon 2016-09-24 16:26:21 +01:00
parent bd699f1353
commit 814c043d01

View file

@ -990,7 +990,8 @@ void osdDrawMenu(void)
case OME_TAB: {
OSD_TAB_t *ptr = p->data;
max7456_write(RIGHT_MENU_COLUMN - 5, i + top, (char *)ptr->names[*ptr->val]);
} break;
break;
}
case OME_VISIBLE:
if (p->data) {
uint32_t address = (uint32_t)p->data;
@ -1414,7 +1415,7 @@ void osdOpenMenu(void)
#endif // LED_STRIP
}
void drawElementPositioningHelp(void)
void osdDrawElementPositioningHelp(void)
{
max7456_write(OSD_X(OSD_cfg.item_pos[OSD_ARTIFICIAL_HORIZON]), OSD_Y(OSD_cfg.item_pos[OSD_ARTIFICIAL_HORIZON]), "--- HELP --- ");
max7456_write(OSD_X(OSD_cfg.item_pos[OSD_ARTIFICIAL_HORIZON]), OSD_Y(OSD_cfg.item_pos[OSD_ARTIFICIAL_HORIZON]) + 1, "USE ROLL/PITCH");
@ -1428,7 +1429,7 @@ void osdDrawElements(void)
max7456_clear_screen();
if (currentElement)
drawElementPositioningHelp();
osdDrawElementPositioningHelp();
else if (sensors(SENSOR_ACC) || inMenu)
osdDrawSingleElement(OSD_ARTIFICIAL_HORIZON);