move GUI safety check to gui loop (not blit)

calib-gui
Ondřej Hruška 1 year ago
parent 170be709fe
commit 90832fd2f4
  1. 2
      Core/Src/app_gui.c
  2. 8
      Core/Src/app_oled.c

@ -14,6 +14,7 @@
#include "ufb/framebuffer.h"
#include "ufb/fb_text.h"
#include "ufb/fb_7seg.h"
#include "app_safety.h"
#define MAX_TEMP 400
@ -182,6 +183,7 @@ void app_task_gui(void *argument)
s_app.screen(message);
}
app_safety_pass_display_updating();
if (s_app.paint_needed) {
s_app.paint_needed = false;
fb_clear();

@ -2,14 +2,8 @@
// Created by MightyPork on 2022/12/28.
//
#include <stdio.h>
#include <string.h>
#include "ufb/framebuffer.h"
#include "gpio.h"
#include "spi.h"
#include "FreeRTOS.h"
#include "app_safety.h"
#define SSD1309_HEIGHT 64
@ -237,8 +231,6 @@ void oled_data(uint8_t *data, int len)
void fb_blit()
{
app_safety_pass_display_updating();
#if 0
oled_data(fb, FB_LEN);
#else

Loading…
Cancel
Save