add:增加user_config版本,不同时初始化user_config

add:定时开关功能(未测试)
This commit is contained in:
Zip
2019-01-29 17:08:20 +08:00
parent 882b4bb0a8
commit 1608a20279
5 changed files with 65 additions and 8 deletions

View File

@@ -5,6 +5,8 @@
#include "MiCOKit_EXT.h"
#define ZTC1_NAME "zTC1"
#define USER_CONFIG_VERSION 1
#define PLUG_NAME_LENGTH 32
#define PLUG_NUM 6 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@@ -47,6 +49,7 @@ typedef struct {
//<2F>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9B9>
typedef struct {
char version;
char idx;
user_plug_config_t plug[PLUG_NUM];
} user_config_t;