From: nishi Date: Fri, 7 Jun 2024 10:11:54 +0000 (+0000) Subject: add log X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=02a8c48d19d2a87018b2eac6ef63cc34913d78c4;p=dataworks.git add log git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@185 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/PKGBUILD b/PKGBUILD index ccec1f0..d520c3d 100644 --- 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() { diff --git a/Server/hayes.c b/Server/hayes.c index 56ea806..4539a7b 100644 --- a/Server/hayes.c +++ b/Server/hayes.c @@ -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); diff --git a/increment-PKGBUILD b/increment-PKGBUILD index 6f4247a..f64f5d8 100644 --- a/increment-PKGBUILD +++ b/increment-PKGBUILD @@ -1 +1 @@ -26 +27