From b60c1e88a26fd4c40a4f75fb9e314ce50a179797 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sun, 14 May 2017 13:10:33 +0200 Subject: [PATCH] And in the other file. Should work for n < 100. --- src/dvrpxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dvrpxx.c b/src/dvrpxx.c index d935e1f..72c00fc 100644 --- a/src/dvrpxx.c +++ b/src/dvrpxx.c @@ -287,8 +287,8 @@ rp_conf(FILE *f, char *s, struct rpdev *rp) rp->rp_iswrite = TRUE; partyp(rp, DVRP_DEFAULT_DISK); /* Default disk config */ RPREG(rp, RHR_SN) = /* Serial Number register (BCD) */ - (((1 / 1000)%10) << 12) - | (((6 / 100)%10) << 8) + (((1600 / 1000)%10) << 12) + | (((1600 / 100)%10) << 8) | (((nrps / 10)%10) << 4) | (((nrps )%10) ); rp->rp_bufsec = 4; /* # sectors in buffer */