Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcmips/dev set limit value and local saved configu...



details:   https://anonhg.NetBSD.org/src/rev/b9d7a84f837f
branches:  trunk
changeset: 480433:b9d7a84f837f
user:      uch <uch%NetBSD.org@localhost>
date:      Wed Jan 12 15:00:47 2000 +0000

description:
set limit value and local saved configuration. return -1 if calibration failed.

diffstat:

 sys/arch/hpcmips/dev/tpcalib.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r eadff6fcc141 -r b9d7a84f837f sys/arch/hpcmips/dev/tpcalib.c
--- a/sys/arch/hpcmips/dev/tpcalib.c    Wed Jan 12 14:56:17 2000 +0000
+++ b/sys/arch/hpcmips/dev/tpcalib.c    Wed Jan 12 15:00:47 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tpcalib.c,v 1.1 2000/01/10 14:07:59 takemura Exp $     */
+/*     $NetBSD: tpcalib.c,v 1.2 2000/01/12 15:00:47 uch Exp $  */
 
 /*
  * Copyright (c) 1999 Shin Takemura All rights reserved.
@@ -113,7 +113,14 @@
                                    &sc->sc_ay, &sc->sc_by, &sc->sc_cy)) {
                        printf("tpcalib: MRA error");
                        tpcalib_reset(sc);
+                       
+                       return (-1);
                } else {
+                       sc->sc_minx = d->minx;
+                       sc->sc_maxx = d->maxx;
+                       sc->sc_miny = d->miny;
+                       sc->sc_maxy = d->maxy;
+                       sc->sc_saved = *d;
                        DPRINTF(("tpcalib: Ax=%d Bx=%d Cx=%d\n",
                                 sc->sc_ax, sc->sc_bx, sc->sc_cx));
                        DPRINTF(("tpcalib: Ay=%d By=%d Cy=%d\n",



Home | Main Index | Thread Index | Old Index