pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/open2300 Make serial communication with the weath...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a03baae67069
branches: trunk
changeset: 365919:a03baae67069
user: martin <martin%pkgsrc.org@localhost>
date: Sun Jul 30 11:02:33 2017 +0000
description:
Make serial communication with the weather station work more reliably
via USB serial adapters.
diffstat:
misc/open2300/Makefile.common | 3 ++-
misc/open2300/distinfo | 3 ++-
misc/open2300/patches/patch-linux2300.c | 24 ++++++++++++++++++++++++
3 files changed, 28 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r 3b7cd71872b1 -r a03baae67069 misc/open2300/Makefile.common
--- a/misc/open2300/Makefile.common Sun Jul 30 09:08:46 2017 +0000
+++ b/misc/open2300/Makefile.common Sun Jul 30 11:02:33 2017 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile.common,v 1.8 2015/12/12 22:57:22 wiedi Exp $
+# $NetBSD: Makefile.common,v 1.9 2017/07/30 11:02:33 martin Exp $
#
# used by misc/open2300-mysql/Makefile
DISTNAME= open2300-1.10
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open2300/}
+PKGREVISION= 1
MAINTAINER= martin%NetBSD.org@localhost
HOMEPAGE= http://www.lavrsen.dk/twiki/bin/view/Open2300/WebHome
diff -r 3b7cd71872b1 -r a03baae67069 misc/open2300/distinfo
--- a/misc/open2300/distinfo Sun Jul 30 09:08:46 2017 +0000
+++ b/misc/open2300/distinfo Sun Jul 30 11:02:33 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/03 23:49:44 agc Exp $
+$NetBSD: distinfo,v 1.12 2017/07/30 11:02:33 martin Exp $
SHA1 (open2300-1.10.tar.gz) = 428d30bd885b5c0acee257bcd04cb47eee14bc3e
RMD160 (open2300-1.10.tar.gz) = 0773bfdf3d0c18b9113f16556651c559cc61b25f
@@ -7,3 +7,4 @@
SHA1 (patch-aa) = 06dbd4a01ee378bf068ef4e8a55327e36fdc3416
SHA1 (patch-ab) = 9437137a36e434fcabde6acc5373be04523357e9
SHA1 (patch-ac) = 48762f4c60ca475031659cad94701a1bc83b6795
+SHA1 (patch-linux2300.c) = 25184ec0d41e00eb16cec43fc359a450777546fe
diff -r 3b7cd71872b1 -r a03baae67069 misc/open2300/patches/patch-linux2300.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/open2300/patches/patch-linux2300.c Sun Jul 30 11:02:33 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-linux2300.c,v 1.1 2017/07/30 11:02:33 martin Exp $
+
+Fix sleep_short() function. Add small delay to make it work more reliably
+with USB serial adapters.
+
+--- linux2300.c.orig 2005-03-05 09:26:58.000000000 +0100
++++ linux2300.c 2017-07-30 12:56:59.000000000 +0200
+@@ -200,6 +200,7 @@ int write_device(WEATHERSTATION serdevic
+ {
+ int ret = write(serdevice, buffer, size);
+ tcdrain(serdevice); // wait for all output written
++ sleep_short(1); // for USB serial devices: wait for real drain
+ return ret;
+ }
+
+@@ -213,7 +214,7 @@ int write_device(WEATHERSTATION serdevic
+ ********************************************************************/
+ void sleep_short(int milliseconds)
+ {
+- usleep(milliseconds/1000);
++ usleep(milliseconds*1000);
+ }
+
+ /********************************************************************
Home |
Main Index |
Thread Index |
Old Index