]> Nishi Git Mirror - dataworks.git/commitdiff
add log
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 7 Jun 2024 10:11:54 +0000 (10:11 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 7 Jun 2024 10:11:54 +0000 (10:11 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@185 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

PKGBUILD
Server/hayes.c
increment-PKGBUILD

index ccec1f01987aec5c8d7e0a7fb78573b7a102a5b4..d520c3d3788332b6df176a9f00bcea593acc8496 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,9 +5,9 @@ pkgver='0.1.0'
 pkgdesc='Database System'
 arch=('i686' 'x86_64')
 license=('BSD')
-pkgrel='25'
+pkgrel='26'
 makedepends=('byacc')
-source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=184')
+source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=185')
 sha256sums=('SKIP')
 
 build() {
index 56ea8060f46cb4b418ea0a883112c5b75c44bb07..4539a7b104031e9c7e8dd75922980dc95eaf34b0 100644 (file)
@@ -116,6 +116,7 @@ char* modem_response(void) {
                        return NULL;
                }
        }
+       if(!connected) printf("-> %s\n", buf);
        return buf;
 }
 
@@ -168,6 +169,7 @@ int server_init(void) {
        printf("Serial port is at I/O 0x%4.4x\n", get_ioport());
        _bios_serialcom(_COM_INIT, port, _COM_9600 | _COM_NOPARITY | _COM_CHR8 | _COM_STOP1);
        write_serial("AT&FE0F1\r");
+       printf("<- AT&FE0F1\n");
        char* resp = modem_response();
        bool echo = __dw_strcaseequ(resp, "AT&FE0F1") || __dw_strcaseequ(resp, "NO CARRIER");
        if(resp != NULL && echo) free(resp); /* Kill echo */
@@ -210,6 +212,7 @@ void server_loop(void) {
                        if(__dw_strcaseequ(resp, "RING")) {
                                printf("Got a call, answering\n");
                                write_serial("ATA\r");
+                               printf("<- ATA\n");
                        } else if(__dw_strcaseequ(resp, "CONNECT")) {
                                printf("Connection successful");
                                if(has_arg) printf(", %s BPS", resp + i + 1);
index 6f4247a6255c99f420d1df558d68745592862ff7..f64f5d8d85ac0230d36724bd7e6ba351a95b4942 100644 (file)
@@ -1 +1 @@
-26
+27