my customized library

Dependencies:   FP MQTTPacket

Fork of MQTT by MQTT

Files at this revision

API Documentation at this revision

Comitter:
icraggs
Date:
Mon Sep 25 11:00:18 2017 +0000
Parent:
45:37f007d2a8ae
Child:
52:3f9919941b86
Commit message:
Change Timer initialization in Countdown class to avoid copy constructor

Changed in this revision

MQTTmbed.h Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTmbed.h	Mon Aug 03 12:40:57 2015 +0000
+++ b/MQTTmbed.h	Mon Sep 25 11:00:18 2017 +0000
@@ -6,14 +6,13 @@
 class Countdown
 {
 public:
-    Countdown()
+    Countdown() : t()
     {
-        t = Timer();   
+  
     }
     
-    Countdown(int ms)
+    Countdown(int ms) : t()
     {
-        t = Timer();
         countdown_ms(ms);   
     }