From 9c6c28f784b5686c27dcd61a6fdb5ef93f2c5a1f Mon Sep 17 00:00:00 2001 From: lewishe Date: Wed, 22 Nov 2023 17:13:26 +0800 Subject: [PATCH] Update factory example --- examples/Factory/gui.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/Factory/gui.cpp b/examples/Factory/gui.cpp index 1da23ae..0f2c67d 100644 --- a/examples/Factory/gui.cpp +++ b/examples/Factory/gui.cpp @@ -233,10 +233,11 @@ void createBrightnessUI(lv_obj_t *parent) lv_msg_subsribe_obj(TEMPERATURE_MSG_ID, label, NULL); // Added temperture change message cb - lv_obj_add_event_cb( label, [](lv_event_t *e) { - lv_obj_t *label = (lv_obj_t *)lv_event_get_target(e); - lv_label_set_text_fmt(label, "Temperature:%.2f°C", amoled.readCoreTemp()); - }, LV_EVENT_MSG_RECEIVED, NULL); + // TODO:Need fix + // lv_obj_add_event_cb( label, [](lv_event_t *e) { + // lv_obj_t *label = (lv_obj_t *)lv_event_get_target(e); + // lv_label_set_text_fmt(label, "Temperature:%.2f°C", amoled.readCoreTemp()); + // }, LV_EVENT_MSG_RECEIVED, NULL); //SDCard