diff --git a/flight/Modules/Osd/osdgen/osdgen.c b/flight/Modules/Osd/osdgen/osdgen.c index b6e0b2d56..fad4e25c7 100644 --- a/flight/Modules/Osd/osdgen/osdgen.c +++ b/flight/Modules/Osd/osdgen/osdgen.c @@ -1955,7 +1955,7 @@ void draw_artificial_horizon(float angle, float pitch, int16_t l_x, int16_t l_y, //sides write_line_outlined(l_x, l_y, l_x, l_y + size, 0, 0, 0, 1); - write_line_outlined(l_x + size, l_y, l_x + size, l_y +s ize, 0, 0, 0, 1); + write_line_outlined(l_x + size, l_y, l_x + size, l_y + size, 0, 0, 0, 1); //plane write_line_outlined(refx - 5, refy, refx + 6, refy, 0, 0, 0, 1); write_line_outlined(refx, refy, refx, refy - 3, 0, 0, 0, 1); diff --git a/flight/targets/Bootloaders/OSD/Makefile b/flight/targets/Bootloaders/OSD/Makefile index ed5d04928..e6a37c2e4 100644 --- a/flight/targets/Bootloaders/OSD/Makefile +++ b/flight/targets/Bootloaders/OSD/Makefile @@ -24,3 +24,6 @@ include $(ROOT_DIR)/make/boards/$(BOARD_NAME)/board-info.mk include $(ROOT_DIR)/make/firmware-defs.mk include $(ROOT_DIR)/make/boot-defs.mk include $(ROOT_DIR)/make/common-defs.mk + +BLONLY_CDEFS += -DEE_BANK_BASE=$(EE_BANK_BASE) +BLONLY_CDEFS += -DEE_BANK_SIZE=$(EE_BANK_SIZE) diff --git a/flight/targets/OSD/Makefile b/flight/targets/OSD/Makefile index a67d2e155..8c3d82fa1 100644 --- a/flight/targets/OSD/Makefile +++ b/flight/targets/OSD/Makefile @@ -99,6 +99,9 @@ else SRC += $(OPTESTS)/$(TESTAPP).c endif +CDEFS += -DEE_BANK_BASE=$(EE_BANK_BASE) +CDEFS += -DEE_BANK_SIZE=$(EE_BANK_SIZE) + # Optional component libraries include $(PIOS)/Common/Libraries/dosfs/library.mk diff --git a/make/common-defs.mk b/make/common-defs.mk index 5d36cec0c..de86b0542 100644 --- a/make/common-defs.mk +++ b/make/common-defs.mk @@ -100,10 +100,6 @@ CDEFS += -DFW_BANK_BASE=$(FW_BANK_BASE) CDEFS += -DFW_BANK_SIZE=$(FW_BANK_SIZE) CDEFS += -DFW_DESC_SIZE=$(FW_DESC_SIZE) -CDEFS += -DEE_BANK_BASE=$(EE_BANK_BASE) -CDEFS += -DEE_BANK_SIZE=$(EE_BANK_SIZE) - - # Compiler flag to set the C Standard level. # c89 - "ANSI" C # gnu89 - c89 plus GCC extensions