From 123d3197c6d91a64931cb19dc669736b6ae5a35c Mon Sep 17 00:00:00 2001
From: chenlh <2008get@163.com>
Date: 星期四, 13 十一月 2025 14:14:31 +0800
Subject: [PATCH] 获取电平函数新增一长度参数; 及第二轮测试少量bug修复.

---
 inc/config.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/inc/config.h b/inc/config.h
index aae15e0..7d3e2b9 100644
--- a/inc/config.h
+++ b/inc/config.h
@@ -1,7 +1,7 @@
 //#ifndef CORE_CONFIG_H_
 //#define CORE_CONFIG_H_
 
-//#pragma once
+#pragma once
 
 #include "../drv/board.h"
 
@@ -21,6 +21,12 @@
 #define LEVEL_REPORT_TIME(x) \
 		(x*SAMPLE_RATE/(1000*SAMPLE_NUM))
 
+//#define DEBUG
+#ifdef DEBUG
+#define dbg_printf printf
+#else
+#define dbg_printf
+#endif
 
 //#endif
 

--
Gitblit v1.9.3