Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mvme68k/dev Fix a braino in the last commit.
details: https://anonhg.NetBSD.org/src/rev/13da87ef6970
branches: trunk
changeset: 499384:13da87ef6970
user: scw <scw%NetBSD.org@localhost>
date: Sat Nov 18 22:46:07 2000 +0000
description:
Fix a braino in the last commit.
diffstat:
sys/arch/mvme68k/dev/zs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ed18acbb7d59 -r 13da87ef6970 sys/arch/mvme68k/dev/zs.c
--- a/sys/arch/mvme68k/dev/zs.c Sat Nov 18 22:34:25 2000 +0000
+++ b/sys/arch/mvme68k/dev/zs.c Sat Nov 18 22:46:07 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.23 2000/11/18 22:34:25 scw Exp $ */
+/* $NetBSD: zs.c,v 1.24 2000/11/18 22:46:07 scw Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -325,7 +325,7 @@
real_bps = TCONST_TO_BPS(cs->cs_brg_clk, tconst);
/* Allow 2% tolerance WRT the required bps */
- if (((abs(real_bps - bps) * 1000) / bps) != bps)
+ if (((abs(real_bps - bps) * 1000) / bps) > 20)
return (EINVAL);
cs->cs_preg[12] = tconst;
Home |
Main Index |
Thread Index |
Old Index