mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 12:46:37 +00:00
Add FreeType debug high watermark
This commit is contained in:
parent
558a98410f
commit
001d1779eb
@ -215,6 +215,11 @@ void lv_ft_font_destroy(lv_font_t* font)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t lv_ft_freetype_high_watermark()
|
||||||
|
{
|
||||||
|
return uxTaskGetStackHighWaterMark(FTTaskHandle);
|
||||||
|
}
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* STATIC FUNCTIONS
|
* STATIC FUNCTIONS
|
||||||
**********************/
|
**********************/
|
||||||
|
@ -80,6 +80,9 @@ bool lv_ft_font_init(lv_ft_info_t* info);
|
|||||||
*/
|
*/
|
||||||
void lv_ft_font_destroy(lv_font_t* font);
|
void lv_ft_font_destroy(lv_font_t* font);
|
||||||
|
|
||||||
|
// Unsed Task memory
|
||||||
|
size_t lv_ft_freetype_high_watermark();
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
@ -63,6 +63,7 @@ void font_setup()
|
|||||||
#else
|
#else
|
||||||
LOG_VERBOSE(TAG_FONT, F("FreeType " D_SERVICE_DISABLED));
|
LOG_VERBOSE(TAG_FONT, F("FreeType " D_SERVICE_DISABLED));
|
||||||
#endif // HASP_USE_FREETYPE
|
#endif // HASP_USE_FREETYPE
|
||||||
|
LOG_DEBUG(TAG_FONT, F("FreeType High Watermark %u"), lv_ft_freetype_high_watermark());
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t font_split_payload(const char* payload)
|
size_t font_split_payload(const char* payload)
|
||||||
@ -217,6 +218,8 @@ static lv_font_t* font_add_to_list(const char* payload)
|
|||||||
// Convert the payload to a font pointer
|
// Convert the payload to a font pointer
|
||||||
lv_font_t* get_font(const char* payload)
|
lv_font_t* get_font(const char* payload)
|
||||||
{
|
{
|
||||||
|
LOG_DEBUG(TAG_FONT, F("FreeType High Watermark %u"), lv_ft_freetype_high_watermark());
|
||||||
|
|
||||||
lv_font_t* font = font_find_in_list(payload);
|
lv_font_t* font = font_find_in_list(payload);
|
||||||
if(font) return font;
|
if(font) return font;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user