move GUI safety check to gui loop (not blit)

This commit is contained in:
2023-04-08 21:15:49 +02:00
parent 170be709fe
commit 90832fd2f4
2 changed files with 2 additions and 8 deletions
+2
View File
@@ -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();
-8
View File
@@ -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