diff --git a/src/MeSuperVariable.cpp b/src/MeSuperVariable.cpp index 070974bf..b6491b8a 100644 --- a/src/MeSuperVariable.cpp +++ b/src/MeSuperVariable.cpp @@ -221,7 +221,7 @@ void MeSuperVariable::arduino_super_var(uint8_t *data, uint32_t len, uint8_t *ou * \par Others * None */ -void * MeSuperVariable::set_variable(char *name, uint8_t type, void *data, uint8_t len)//设置变量的值,要指定数据类型 +bool MeSuperVariable::set_variable(char *name, uint8_t type, void *data, uint8_t len)//设置变量的值,要指定数据类型 { bool ret; bool bool_val,*bool_p; diff --git a/src/MeSuperVariable.h b/src/MeSuperVariable.h index 570c482f..d3506b92 100644 --- a/src/MeSuperVariable.h +++ b/src/MeSuperVariable.h @@ -301,7 +301,7 @@ class MeSuperVariable * \par Others * None */ - void *set_variable(char *name,uint8_t type,void *data, uint8_t len); + bool set_variable(char *name,uint8_t type,void *data, uint8_t len); /** * \par Function