mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Add StreamUtils comment
This commit is contained in:
parent
9effe5220c
commit
c7fdbc8944
10
src/hasp.cpp
10
src/hasp.cpp
@ -5,7 +5,7 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "ArduinoLog.h"
|
#include "ArduinoLog.h"
|
||||||
#include "ArduinoJson.h"
|
#include "ArduinoJson.h"
|
||||||
#include "StreamUtils.h"
|
#include "StreamUtils.h" // For EEPromStream
|
||||||
|
|
||||||
#include "lvgl.h"
|
#include "lvgl.h"
|
||||||
#include "lv_conf.h"
|
#include "lv_conf.h"
|
||||||
@ -213,8 +213,12 @@ void haspProgressVal(uint8_t val)
|
|||||||
void haspProgressMsg(const char * msg)
|
void haspProgressMsg(const char * msg)
|
||||||
{
|
{
|
||||||
lv_obj_t * bar = hasp_find_obj_from_id(255, 10);
|
lv_obj_t * bar = hasp_find_obj_from_id(255, 10);
|
||||||
hasp_process_obj_attribute(bar, "value_str", msg, true); // literal string
|
|
||||||
lv_task_handler(); /* let the GUI do its work */
|
char value_str[10];
|
||||||
|
snprintf_P(value_str, sizeof(value_str), PSTR("value_str"));
|
||||||
|
hasp_process_obj_attribute(bar, value_str, msg, true);
|
||||||
|
|
||||||
|
lv_task_handler(); /* let the GUI do its work */
|
||||||
|
|
||||||
/* if(bar) {
|
/* if(bar) {
|
||||||
progress_str.reserve(64);
|
progress_str.reserve(64);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
#include "ArduinoLog.h"
|
#include "ArduinoLog.h"
|
||||||
#include "ArduinoJson.h"
|
#include "ArduinoJson.h"
|
||||||
#include "StreamUtils.h"
|
#include "StreamUtils.h" // For EEPromStream
|
||||||
|
|
||||||
#include "hasp_conf.h"
|
#include "hasp_conf.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user