Display "Date Built" in ABOUT
[uccvend-snackrom.git] / ROM2 / main_basic.c
index 381db9c..feb5bee 100644 (file)
@@ -4,8 +4,7 @@
  * and snacks.
  */
 
-#define VERSION_STRING "X 20040625"
-
+#include "version.h"
 #include "display_basic.h"
 #include "keypad.h"
 #include "chime.h"
@@ -355,11 +354,10 @@ void about() {
                return;
        }
        send_string(
-               "-----------------------------------------------------------------" CRLF
-               "    ROM2 (C) 2004 Bernard Blackham <[email protected]>" CRLF
-               "-----------------------------------------------------------------" CRLF
-               "                                        Revision " VERSION_STRING CRLF
-               "" CRLF
+               "------------------------------------------------------------" CRLF
+               " ROM2 (C) 2004 Bernard Blackham <[email protected]>" CRLF
+               "------------------------------------------------------------" CRLF
+               " Revision: " VERSION_STRING "  Built: " DATEBUILT_STRING CRLF "" CRLF CRLF
                "   This snack machine was brought to you by " CRLF
                "    Bernard Blackham" CRLF
                "    Mark Tearle" CRLF
@@ -367,7 +365,7 @@ void about() {
                "    Michal Gornisiewicz" CRLF
                "    and others." CRLF
                "" CRLF
-               " Another UCC project in action.         http://www.ucc.asn.au/" CRLF
+               " Another UCC project in action.      http://www.ucc.asn.au/" CRLF
        );
 }
 
@@ -443,12 +441,16 @@ void getrom() {
                return;
        }
        char s[4];
+       
+       u16 rom_addr;
+       rom_addr = (u16)(&_rom_src_data);
+
        send_string("Writing to serial port (maybe). Size is 0x");
        send_string(u82hex(_rom_src_len >> 8));
        send_string(u82hex(_rom_src_len & 0xff));
        send_string("@0x");
-       send_string(u82hex((u16)(&_rom_src_data) >> 8));
-       send_string(u82hex((u16)(&_rom_src_data) & 0xff));
+       send_string(u82hex(rom_addr >> 8));
+       send_string(u82hex(rom_addr & 0xff));
        send_string(" with signature ");
        s[0] = _rom_src_data[0];
        s[1] = _rom_src_data[1];

UCC git Repository :: git.ucc.asn.au