From af0c3430e034c72bd30898aa0f2e5b88d4504b23 Mon Sep 17 00:00:00 2001 From: Federico Terraneo <fede.tft@miosix.org> Date: Mon, 13 May 2019 22:26:05 +0200 Subject: [PATCH] Fix framebuffer base address to match the one in the linker script --- drivers/display_stm32f4discovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/display_stm32f4discovery.cpp b/drivers/display_stm32f4discovery.cpp index c86b278..d733182 100644 --- a/drivers/display_stm32f4discovery.cpp +++ b/drivers/display_stm32f4discovery.cpp @@ -776,7 +776,7 @@ DisplayImpl::pixel_iterator DisplayImpl::begin(Point p1, Point p2, DisplayImpl::~DisplayImpl() {} DisplayImpl::DisplayImpl() - : framebuffer1(reinterpret_cast<unsigned short *>(0xc0000000)), + : framebuffer1(reinterpret_cast<unsigned short *>(0xc0c00000)), buffer(framebuffer1 + numPixels) { /* This driver uses DSI interface in command mode, but it was firstly programmed in video mode. -- GitLab