button

Dependents:   Temperature_Sensor_to_LCD

Revision:
3:d99d9c0324b7
Parent:
1:57fe493e8db2
Child:
4:543ec60c2814
--- a/button.hpp	Mon Nov 23 01:26:27 2015 +0000
+++ b/button.hpp	Mon Nov 23 09:47:50 2015 +0000
@@ -21,7 +21,7 @@
         Button(LCD_DISCO_F746NG &lcd, TS_DISCO_F746NG &ts,
                uint16_t x, uint16_t y, uint16_t width, uint16_t height,
                uint32_t color, uint32_t backColor,
-               string str = "", sFONT &fonts = Font12,
+               const string str = "", sFONT &fonts = Font12,
                uint32_t textColor = LCD_COLOR_WHITE)
               : lcd_(lcd), ts_(ts), X_(x), Y_(y), W_(width), H_(height),
                      COLOR_(color), BACK_COLOR_(backColor),