comparison src/aci2/aci/ati_csc.c @ 255:091f5d38afcd

aci2: AT%VER returns FreeCalypso firmware version string
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 03 Aug 2017 23:18:11 +0000
parents 93999a60b835
children
comparison
equal deleted inserted replaced
254:cae495752cf7 255:091f5d38afcd
571 +--------------------------------------------------------------------+ 571 +--------------------------------------------------------------------+
572 572
573 PURPOSE : %VER displays version of entities 573 PURPOSE : %VER displays version of entities
574 */ 574 */
575 575
576 #if !defined (WIN32) AND !defined(_lint) 576 extern const char firmware_version_str[];
577 EXTERN CHAR* aci_version(void);
578 EXTERN CHAR* cc_version(void);
579 //EXTERN CHAR* ccd_version(void);
580 EXTERN CHAR* dl_version(void);
581 EXTERN CHAR* mm_version(void);
582 EXTERN CHAR* rr_version(void);
583 EXTERN CHAR* sim_version(void);
584 EXTERN CHAR* sms_version(void);
585 EXTERN CHAR* ss_version(void);
586 EXTERN CHAR* l1_version(void);
587 #ifdef SMI
588 EXTERN CHAR* smi_version(void);
589 #endif
590 #ifdef MFW
591 EXTERN CHAR* bmi_version(void);
592 EXTERN CHAR* mfw_version(void);
593 #endif
594 #ifdef FAX_AND_DATA
595 EXTERN CHAR* l2r_version(void);
596 EXTERN CHAR* ra_version(void);
597 EXTERN CHAR* rlp_version(void);
598 #ifdef FF_FAX
599 EXTERN CHAR* fad_version(void);
600 EXTERN CHAR* t30_version(void);
601 #endif /* FF_FAX */
602 #endif /* FAX_AND_DATA */
603 #endif
604 577
605 GLOBAL T_ATI_RSLT atPercentVER (char* cl, UBYTE srcId) 578 GLOBAL T_ATI_RSLT atPercentVER (char* cl, UBYTE srcId)
606 { 579 {
607 char *me="%VER: "; 580 char *me="%VER: ";
608 581
609 TRACE_FUNCTION("atPercentVER()"); 582 TRACE_FUNCTION("atPercentVER()");
610 #if !defined (WIN32) AND !defined(_lint) 583
611 sprintf(g_sa,"%s%s",me,aci_version()); 584 sprintf(g_sa, "%s%s", me, firmware_version_str);
612 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); 585 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
613 sprintf(g_sa,"%s%s",me,cc_version());
614 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
615 //sprintf(g_sa,"%s%s",me,ccd_version());
616 //io_sendMessage(g_sa, ATI_NORMAL_OUTPUT);
617 sprintf(g_sa,"%s%s",me,dl_version());
618 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
619 sprintf(g_sa,"%s%s",me,mm_version());
620 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
621 sprintf(g_sa,"%s%s",me,rr_version());
622 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
623 sprintf(g_sa,"%s%s",me,sim_version());
624 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
625 sprintf(g_sa,"%s%s",me,sms_version());
626 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
627 sprintf(g_sa,"%s%s",me,ss_version());
628 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
629 sprintf(g_sa,"%s%s",me,l1_version());
630 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
631 #ifndef NEW_FRAME
632 sprintf(g_sa,"%s%s",me,comframe_version());
633 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
634 #endif
635 #ifdef SMI
636 sprintf(g_sa,"%s%s",me,smi_version());
637 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
638 #endif
639 #ifdef MFW
640 sprintf(g_sa,"%s%s",me,bmi_version());
641 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
642 sprintf(g_sa,"%s%s",me,mfw_version());
643 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
644 #endif
645
646 #ifdef FAX_AND_DATA
647 sprintf(g_sa,"%s%s",me,l2r_version());
648 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
649 sprintf(g_sa,"%s%s",me,ra_version());
650 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
651 sprintf(g_sa,"%s%s",me,rlp_version());
652 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
653
654 #ifdef FF_FAX
655 sprintf(g_sa,"%s%s",me,fad_version());
656 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
657 sprintf(g_sa,"%s%s",me,t30_version());
658 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
659 #endif /* FF_FAX */
660
661 #endif /* FAX_AND_DATA */
662
663 #endif
664 586
665 return (ATI_CMPL); 587 return (ATI_CMPL);
666 } 588 }
667 589
668 /* 590 /*