From 25e140424ebcac153520afded63881583161a439 Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Thu, 9 May 2019 17:21:29 +0200 Subject: [PATCH] fix return type of check MeSuperVariable::set_variable --- src/MeSuperVariable.cpp | 2 +- src/MeSuperVariable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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