FreeCalypso > hg > fc-magnetite
comparison src/aci2/bmi/mmiIdle.c @ 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 | 3c2acfa1a72f |
children | 72f5b47a0d07 |
comparison
equal
deleted
inserted
replaced
464:2ba8d9decc30 | 465:0f79101c6fa2 |
---|---|
613 static T_MFW_HND ShowVersion_create(MfwHnd parent_window); | 613 static T_MFW_HND ShowVersion_create(MfwHnd parent_window); |
614 static void ShowVersion_DialogCB(T_MFW_HND win, USHORT e, SHORT identifier, void *parameter); | 614 static void ShowVersion_DialogCB(T_MFW_HND win, USHORT e, SHORT identifier, void *parameter); |
615 void ShowVersionSetEditor(T_MFW_HND win); | 615 void ShowVersionSetEditor(T_MFW_HND win); |
616 static void ShowVerionCB( T_MFW_HND win, USHORT Identifier,UBYTE reason); | 616 static void ShowVerionCB( T_MFW_HND win, USHORT Identifier,UBYTE reason); |
617 void showVersion_destroy(MfwHnd own_window); | 617 void showVersion_destroy(MfwHnd own_window); |
618 | |
619 #if 0 /* FreeCalypso */ | |
618 const char * date = "29.02.02"; | 620 const char * date = "29.02.02"; |
619 const char * bmi = "01.06.01"; | 621 const char * bmi = "01.06.01"; |
620 const char * gprs = "XX.XX.XX"; | 622 const char * gprs = "XX.XX.XX"; |
621 const char * ti = "05.03.02"; | 623 const char * ti = "05.03.02"; |
624 #endif | |
625 | |
626 extern const char firmware_version_str[]; | |
622 | 627 |
623 //API - 13-01-03 - 1310 - Create a variable for idle instead of using global pin_emergency_call | 628 //API - 13-01-03 - 1310 - Create a variable for idle instead of using global pin_emergency_call |
624 UBYTE pin_idle_emerg_call; | 629 UBYTE pin_idle_emerg_call; |
625 // Apr 27, 2004 REF: ENH 12646 Deepa M.D | 630 // Apr 27, 2004 REF: ENH 12646 Deepa M.D |
626 extern int smsFullEventTim( MfwEvt e, MfwTim *tc ); | 631 extern int smsFullEventTim( MfwEvt e, MfwTim *tc ); |
4903 switch( e ) | 4908 switch( e ) |
4904 { //when window first created | 4909 { //when window first created |
4905 case SHOWVERSION_INIT: | 4910 case SHOWVERSION_INIT: |
4906 { | 4911 { |
4907 | 4912 |
4913 #if 0 /* FreeCalypso */ | |
4908 strcat(data->buffer, "Date:"); | 4914 strcat(data->buffer, "Date:"); |
4909 strcat(data->buffer, date); | 4915 strcat(data->buffer, date); |
4910 strcat(data->buffer,"\n"); | 4916 strcat(data->buffer,"\n"); |
4911 strcat(data->buffer, "BMI:"); | 4917 strcat(data->buffer, "BMI:"); |
4912 strcat(data->buffer, bmi); | 4918 strcat(data->buffer, bmi); |
4914 strcat(data->buffer,"GPRS:"); | 4920 strcat(data->buffer,"GPRS:"); |
4915 strcat(data->buffer, gprs); | 4921 strcat(data->buffer, gprs); |
4916 strcat(data->buffer,"\n"); | 4922 strcat(data->buffer,"\n"); |
4917 strcat(data->buffer,"TI:"); | 4923 strcat(data->buffer,"TI:"); |
4918 strcat(data->buffer, ti); | 4924 strcat(data->buffer, ti); |
4925 #else | |
4926 strcat(data->buffer, firmware_version_str); | |
4927 #endif | |
4919 | 4928 |
4920 ShowVersionSetEditor(win);//set editor with default attribute values | 4929 ShowVersionSetEditor(win);//set editor with default attribute values |
4921 | 4930 |
4922 /* SPR#1428 - SH - New Editor changes */ | 4931 /* SPR#1428 - SH - New Editor changes */ |
4923 #ifdef NEW_EDITOR | 4932 #ifdef NEW_EDITOR |