Update mocs, header and fix an error
This commit is contained in:
2023-11-13 18:21:14 +01:00
parent 8efac8948a
commit 40bc58bdd9
3 changed files with 6 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ void tftp_close(void* handle) {
if (handle == &virt_file[1]) {
// TODO: waiting on pr of tim to merge so we can use the bmp lcd function
lcd_clear(LCD_COLOR_BLACK);
lcd_display_text("show me what you got virtImage.raw", 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16);
lcd_display_text((uint8_t*)"show me what you got virtImage.raw", 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16);
}
if (handle == &virt_file[2]) {

View File

@@ -20,4 +20,8 @@ int tftp_init(struct tftp_context* context) {
void lcd_display_text(uint8_t* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font) {
}
void lcd_clear(uint32_t color) {
}

View File

@@ -37,6 +37,7 @@ void tftp_cleanup(void);
uint32_t logger_get_timestamp(void);
int tftp_init(struct tftp_context* context);
void lcd_display_text(uint8_t* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font);
void lcd_clear(uint32_t color);
#ifdef __cplusplus
}