Skip to content

Commit

Permalink
fixed backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed May 7, 2020
1 parent 504bb31 commit 5a61404
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/eez/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@ static uint8_t * const VRAM_AUX_BUFFER6_START_ADDRESS = VRAM_AUX_BUFFER5_START_A
static uint8_t * const VRAM_AUX_BUFFER7_START_ADDRESS = VRAM_AUX_BUFFER6_START_ADDRESS + VRAM_BUFFER_SIZE;
static uint8_t * const VRAM_AUX_BUFFER8_START_ADDRESS = VRAM_AUX_BUFFER7_START_ADDRESS + VRAM_BUFFER_SIZE;

static uint8_t * const MEMORY_END = VRAM_AUX_BUFFER8_START_ADDRESS + VRAM_BUFFER_SIZE;
static uint8_t * const VRAM_AUX_BUFFER9_START_ADDRESS = VRAM_AUX_BUFFER8_START_ADDRESS + VRAM_BUFFER_SIZE;

static uint8_t * const MEMORY_END = VRAM_AUX_BUFFER9_START_ADDRESS + VRAM_BUFFER_SIZE;
2 changes: 1 addition & 1 deletion src/eez/modules/mcu/stm32/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void fillRect(uint16_t *dst, int x, int y, int width, int height, uint16_t color
HAL_DMA2D_Start(&hdma2d, colorBGRA, vramOffset(dst, x, y), width, height);
} else {
// fill aux. buffer with BGRA color
auto auxBuffer = (uint32_t *)VRAM_ANIMATION_BUFFER1_START_ADDRESS;
auto auxBuffer = (uint32_t *)VRAM_AUX_BUFFER9_START_ADDRESS;

hdma2d.Init.Mode = DMA2D_R2M;
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
Expand Down
2 changes: 1 addition & 1 deletion src/eez/modules/psu/gui/psu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void PsuAppContext::stateManagment() {
}

// show startup wizard
if (!isFrontPanelLocked() && activePageId == PAGE_ID_MAIN && int32_t(micros() - m_showPageTime) >= 50000L) {
if (!isFrontPanelLocked() && activePageId == PAGE_ID_MAIN && int32_t(millis() - m_showPageTime) >= 250L) {
if (showSetupWizardQuestion()) {
return;
}
Expand Down

0 comments on commit 5a61404

Please sign in to comment.