changeset 465:0f79101c6fa2

bmi2: show FreeCalypso fw version in ###520# screen
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Mar 2018 06:08:06 +0000
parents 2ba8d9decc30
children 1524d182a2b2
files src/aci2/bmi/mmiIdle.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/bmi/mmiIdle.c	Tue Mar 20 05:54:32 2018 +0000
+++ b/src/aci2/bmi/mmiIdle.c	Tue Mar 20 06:08:06 2018 +0000
@@ -615,10 +615,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 = "29.02.02";
 const char * bmi  = "01.06.01";
 const char * gprs = "XX.XX.XX";
-const char * ti    = "05.03.02";
+const char * ti   = "05.03.02";
+#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;
@@ -4905,6 +4910,7 @@
     	case SHOWVERSION_INIT:
     	{
 
+#if 0	/* FreeCalypso */
 		strcat(data->buffer, "Date:");
 		strcat(data->buffer, date);
 		strcat(data->buffer,"\n");
@@ -4916,6 +4922,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