diff --git a/NexTimer.cpp b/NexTimer.cpp index 2e2f166..813a648 100644 --- a/NexTimer.cpp +++ b/NexTimer.cpp @@ -1,5 +1,5 @@ /** - * @file NexButton.cpp + * @file NexTimer.cpp * * The implementation of class NexTimer. * @@ -30,7 +30,6 @@ void NexTimer::detachTimer(void) NexTouch::detachPop(); } - bool NexTimer::getCycle(uint32_t *number) { String cmd = String("get "); @@ -59,7 +58,6 @@ bool NexTimer::enable(void) { char buf[10] = {0}; String cmd; - utoa(1, buf, 10); cmd += getObjName(); cmd += ".en="; @@ -73,7 +71,6 @@ bool NexTimer::disable(void) { char buf[10] = {0}; String cmd; - utoa(0, buf, 10); cmd += getObjName(); cmd += ".en="; diff --git a/NexTimer.h b/NexTimer.h index 2800c22..8496d75 100644 --- a/NexTimer.h +++ b/NexTimer.h @@ -1,7 +1,7 @@ /** - * @file NexButton.h + * @file NexTimer.h * - * The definition of class NexButton. + * The definition of class NexTimer. * * @author huang xianming (email:) * @date 2015/8/26 @@ -40,7 +40,7 @@ public: /* methods */ */ NexTimer(uint8_t pid, uint8_t cid, const char *name); - /** + /** * Attach an callback function of timer respond event. * * @param push - callback called with ptr when a timer respond event occurs. @@ -67,23 +67,27 @@ public: /* methods */ * @retval false - failed. */ bool getCycle(uint32_t *number); - /** - * Set the value of timer cycle val. - * - * @param number - the value of timer cycle. - * - * @retval true - success. - * @retval false - failed. - */ + /** + * Set the value of timer cycle val. + * + * @param number - the value of timer cycle. + * + * @retval true - success. + * @retval false - failed. + */ bool setCycle(uint32_t number); - /** - *contorl timer enable. - */ + /** + * contorl timer enable. + * @retval true - success. + * @retval false - failed. + */ bool enable(void); - /** - *contorl timer disable. - */ + /** + * contorl timer disable. + * @retval true - success. + * @retval false - failed. + */ bool disable(void);