diff --git a/Test/PulsePortTest.cpp b/Test/PulsePortTest.cpp index ae93e61b..3e704caa 100644 --- a/Test/PulsePortTest.cpp +++ b/Test/PulsePortTest.cpp @@ -9,7 +9,9 @@ void TestPulsePort() } void PulseHandler(PulsePort* port, bool hasPulse, void* param) -{ // down true 无遮挡   down false 有遮挡 +{ +#if defined(DEBUG) + // down true 无遮挡   down false 有遮挡 static UInt64 HideStr; static UInt64 UnHideStr; // debug_printf("Press P%c%d down=%d", _PIN_NAME(port->_Port->_Pin),down); @@ -27,6 +29,7 @@ void PulseHandler(PulsePort* port, bool hasPulse, void* param) //int time = HideStr-UnHideStr; debug_printf("有脉冲时间 %d \r\n", (int)(HideStr-UnHideStr)); } +#endif } // 初始化引脚 diff --git a/TinyNet/Tiny.cpp b/TinyNet/Tiny.cpp index 9f261493..e19733e9 100644 --- a/TinyNet/Tiny.cpp +++ b/TinyNet/Tiny.cpp @@ -239,13 +239,13 @@ void CheckUserPress2(InputPort* port, bool down, void* param) CheckUserPress(port, down, param); } -void InitButtonPress(Button_GrayLevel* btns, byte count) +/*void InitButtonPress(Button_GrayLevel* btns, byte count) { for(int i=0; i