From acd01384942db5f3a8e7223f844fbb7c35e8ec53 Mon Sep 17 00:00:00 2001 From: WangQiang <807319473@qq.com> Date: Tue, 24 May 2016 03:17:20 +0000 Subject: [PATCH] --- TinyNet/Tiny.cpp | 12 +++++++++--- TinyNet/Tiny.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/TinyNet/Tiny.cpp b/TinyNet/Tiny.cpp index e19733e9..f973e41e 100644 --- a/TinyNet/Tiny.cpp +++ b/TinyNet/Tiny.cpp @@ -239,13 +239,19 @@ void CheckUserPress2(InputPort* port, bool down, void* param) CheckUserPress(port, down, param); } -/*void InitButtonPress(Button_GrayLevel* btns, byte count) +void CheckUserPress3(void* sender, void* param) +{ + auto but = (Button_GrayLevel *)sender; + CheckUserPress(&but->Key, but->Key.Read(), param); +} + +void InitButtonPress(Button_GrayLevel* btns, byte count) { for(int i=0; i