From 4dacc2939aa996325477228f07885000a48f287f Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Thu, 27 Sep 2012 09:00:19 -0400 Subject: add register offset to TNT_port addresses --- gpib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpib.c b/gpib.c index 32e9074..598e25c 100644 --- a/gpib.c +++ b/gpib.c @@ -583,13 +583,13 @@ static unsigned long int TNT_DATA_COUNT() static void TNT_Out(int reg, unsigned int byte) { - bus_writebyte (TNT_Port, (uint8_t) byte); + bus_writebyte (TNT_Port + reg, (uint8_t) byte); } static unsigned char TNT_In(int reg) { - return (unsigned char) bus_readbyte (TNT_Port); + return (unsigned char) bus_readbyte (TNT_Port + reg); } -- cgit