FreeCalypso > hg > fc-magnetite
comparison 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 |
comparison
equal
deleted
inserted
replaced
463:712c5cc0b2a9 | 464:2ba8d9decc30 |
---|---|
792 static T_MFW_HND ShowVersion_create(MfwHnd parent_window); | 792 static T_MFW_HND ShowVersion_create(MfwHnd parent_window); |
793 static void ShowVersion_DialogCB(T_MFW_HND win, USHORT e, SHORT identifier, void *parameter); | 793 static void ShowVersion_DialogCB(T_MFW_HND win, USHORT e, SHORT identifier, void *parameter); |
794 void ShowVersionSetEditor(T_MFW_HND win); | 794 void ShowVersionSetEditor(T_MFW_HND win); |
795 static void ShowVerionCB( T_MFW_HND win, USHORT Identifier,UBYTE reason); | 795 static void ShowVerionCB( T_MFW_HND win, USHORT Identifier,UBYTE reason); |
796 void showVersion_destroy(MfwHnd own_window); | 796 void showVersion_destroy(MfwHnd own_window); |
797 | |
798 #if 0 /* FreeCalypso */ | |
797 const char * date = "20080812"; | 799 const char * date = "20080812"; |
798 const char * bmi = "01.06.01"; | 800 const char * bmi = "01.06.01"; |
799 const char * gprs = "XX.XX.XX"; | 801 const char * gprs = "XX.XX.XX"; |
800 const char * ti = "N5.24M18V1.9"; | 802 const char * ti = "N5.24M18V1.9"; |
803 #endif | |
804 | |
805 extern const char firmware_version_str[]; | |
801 | 806 |
802 //API - 13-01-03 - 1310 - Create a variable for idle instead of using global pin_emergency_call | 807 //API - 13-01-03 - 1310 - Create a variable for idle instead of using global pin_emergency_call |
803 UBYTE pin_idle_emerg_call; | 808 UBYTE pin_idle_emerg_call; |
804 // Apr 27, 2004 REF: ENH 12646 Deepa M.D | 809 // Apr 27, 2004 REF: ENH 12646 Deepa M.D |
805 extern int smsFullEventTim( MfwEvt e, MfwTim *tc ); | 810 extern int smsFullEventTim( MfwEvt e, MfwTim *tc ); |
6026 switch( e ) | 6031 switch( e ) |
6027 { //when window first created | 6032 { //when window first created |
6028 case SHOWVERSION_INIT: | 6033 case SHOWVERSION_INIT: |
6029 { | 6034 { |
6030 | 6035 |
6036 #if 0 /* FreeCalypso */ | |
6031 strcat(data->buffer, "Date:"); | 6037 strcat(data->buffer, "Date:"); |
6032 strcat(data->buffer, date); | 6038 strcat(data->buffer, date); |
6033 strcat(data->buffer,"\n"); | 6039 strcat(data->buffer,"\n"); |
6034 strcat(data->buffer, "BMI:"); | 6040 strcat(data->buffer, "BMI:"); |
6035 strcat(data->buffer, bmi); | 6041 strcat(data->buffer, bmi); |
6037 strcat(data->buffer,"GPRS:"); | 6043 strcat(data->buffer,"GPRS:"); |
6038 strcat(data->buffer, gprs); | 6044 strcat(data->buffer, gprs); |
6039 strcat(data->buffer,"\n"); | 6045 strcat(data->buffer,"\n"); |
6040 strcat(data->buffer,"TI:"); | 6046 strcat(data->buffer,"TI:"); |
6041 strcat(data->buffer, ti); | 6047 strcat(data->buffer, ti); |
6048 #else | |
6049 strcat(data->buffer, firmware_version_str); | |
6050 #endif | |
6042 | 6051 |
6043 ShowVersionSetEditor(win);//set editor with default attribute values | 6052 ShowVersionSetEditor(win);//set editor with default attribute values |
6044 | 6053 |
6045 /* SPR#1428 - SH - New Editor changes */ | 6054 /* SPR#1428 - SH - New Editor changes */ |
6046 #ifdef NEW_EDITOR | 6055 #ifdef NEW_EDITOR |