diff src/ui3/bmi/mmiIdle.c @ 464:2ba8d9decc30

bmi3: show FreeCalypso fw version in ###520# screen
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Mar 2018 05:54:32 +0000
parents 2f23fefeaa30
children 72f5b47a0d07
line wrap: on
line diff
--- a/src/ui3/bmi/mmiIdle.c	Tue Mar 20 01:29:44 2018 +0000
+++ b/src/ui3/bmi/mmiIdle.c	Tue Mar 20 05:54:32 2018 +0000
@@ -794,10 +794,15 @@
 void ShowVersionSetEditor(T_MFW_HND win);
 static void ShowVerionCB( T_MFW_HND win, USHORT Identifier,UBYTE reason);
 void showVersion_destroy(MfwHnd own_window);
+
+#if 0	/* FreeCalypso */
 const char * date = "20080812";
 const char * bmi  = "01.06.01";
 const char * gprs = "XX.XX.XX";
 const char * ti   = "N5.24M18V1.9";
+#endif
+
+extern const char firmware_version_str[];
 
 //API - 13-01-03 - 1310 - Create a variable for idle instead of using global pin_emergency_call
 UBYTE pin_idle_emerg_call;
@@ -6028,6 +6033,7 @@
     	case SHOWVERSION_INIT:
     	{
 
+#if 0	/* FreeCalypso */
 		strcat(data->buffer, "Date:");
 		strcat(data->buffer, date);
 		strcat(data->buffer,"\n");
@@ -6039,6 +6045,9 @@
 		strcat(data->buffer,"\n");
 		strcat(data->buffer,"TI:");
 		strcat(data->buffer, ti);
+#else
+		strcat(data->buffer, firmware_version_str);
+#endif
 
     	ShowVersionSetEditor(win);//set editor with default attribute values