mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-19 08:23:22 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Mountain View Silicon Tech. Inc.
|
||||
// Copyright 2011, Mountain View Silicon Tech. Inc., ShangHai, China
|
||||
// All rights reserved.
|
||||
//
|
||||
// Filename :debug.h
|
||||
//
|
||||
// Description :
|
||||
// Define debug ordinary print & debug routine
|
||||
//
|
||||
// Changelog :
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __DEBUG_H__
|
||||
#define __DEBUG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif//__cplusplus
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(FUNC_DEBUG_EN)
|
||||
#define DBG(format, ...) printf(format, ##__VA_ARGS__)
|
||||
#else
|
||||
#define DBG(format, ...)
|
||||
#endif
|
||||
|
||||
#if (defined(FUNC_DEBUG_EN) && defined(FUNC_APP_DEBUG_EN))
|
||||
#define APP_DBG(format, ...) printf(format, ##__VA_ARGS__)
|
||||
#else
|
||||
#define APP_DBG(format, ...)
|
||||
#endif
|
||||
|
||||
#if (defined(FUNC_DEBUG_EN) && defined(FUNC_FS_DEBUG_EN))
|
||||
#define FS_DBG(format, ...) printf(format, ##__VA_ARGS__)
|
||||
#else
|
||||
#define FS_DBG(format, ...)
|
||||
#endif
|
||||
|
||||
#define ASSERT(x)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif//__cplusplus
|
||||
|
||||
#endif //__DBG_H__
|
||||
|
||||
Reference in New Issue
Block a user