Téo DHIEN-FANE / F746_GUI

Dependencies:   Array_Matrix TS_DISCO_F746NG LCD_DISCO_F746NG BSP_DISCO_F746NG

Dependents:   dashboard_f1

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Wed Jan 25 14:18:42 2017 +0000
Parent:
28:e2b7ea78b7a0
Child:
30:835a6b1c0fad
Commit message:
30

Changed in this revision

BlinkLabel.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/BlinkLabel.hpp	Wed Jan 25 13:56:02 2017 +0000
+++ b/BlinkLabel.hpp	Wed Jan 25 14:18:42 2017 +0000
@@ -2,7 +2,7 @@
 //  BlinkLabel class -- derived class of Label class
 //      For displaying error message
 //
-//  2017/01/16, Copyright (c) 2017 MIKAMI, Naoki
+//  2017/01/25, Copyright (c) 2017 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #ifndef F746_BLINK_LABEL_HPP
@@ -25,14 +25,14 @@
                    uint32_t on = 500, uint32_t off = 200)
             : Label(x, y, str, mode, fonts, textColor, backColor)
         {
-            ResetButton *reset = new ResetButton();
+            ResetButton reset;
             while (true)    // Blinking here
             {
                 wait_ms(on);
                 Draw(backColor);
                 wait_ms(off);
                 Draw(textColor);
-                reset->DoIfTouched();
+                reset.DoIfTouched();
             }
         }
 
@@ -43,3 +43,4 @@
     };
 }
 #endif  // F746_BLINK_LABEL_HPP
+