Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Revision:
2:bd49dd9c7bd6
Parent:
0:6d5a5f60d228
--- a/rectangle.cpp	Thu Apr 04 15:27:33 2019 +0000
+++ b/rectangle.cpp	Sun May 19 11:59:32 2019 +0000
@@ -33,7 +33,7 @@
 void Rectangle::DisplayString(LCD_DISCO_F429ZI &lcd){
     
     uint8_t *uText = new uint8_t [Text.length()+1];
-    sprintf((char*)uText, "%s", Text);
+    sprintf((char*)uText, "%s", Text.c_str());
     lcd.SetBackColor(TextBackColor);
     lcd.SetTextColor(TextColor);
     lcd.DisplayStringAt(x, y, uText, LEFT_MODE);