From daa2d0455e43dfd0b82537b5ee17095d0343c5a4 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Mon, 11 Jan 2021 22:37:15 +0100 Subject: [PATCH] Disable Progressbar value_str --- src/hasp/hasp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hasp/hasp.cpp b/src/hasp/hasp.cpp index 6296e10c..4b2c4d73 100644 --- a/src/hasp/hasp.cpp +++ b/src/hasp/hasp.cpp @@ -229,7 +229,11 @@ void haspProgressVal(uint8_t val) if(!lv_obj_get_hidden(bar)) { lv_obj_set_hidden(bar, true); lv_obj_set_style_local_bg_opa(layer, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_0); - lv_obj_set_style_local_value_str(bar, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, ""); + + // lv_obj_set_style_local_value_str(bar, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, ""); + // lv_obj_set_value_str_txt(bar, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, NULL); //TODO: call our custom + // function to free the memory + #if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_ESP8266) // progress_str.clear(); #endif