diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-27 09:00:19 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-27 09:00:19 -0400 |
commit | 4dacc2939aa996325477228f07885000a48f287f (patch) | |
tree | 40b8d641c1e2093f4c7818626ea5a1a710425852 /gpib.c | |
parent | c7f023c4d7e5544002f68583889f4acb0eb91847 (diff) |
add register offset to TNT_port addresses
Diffstat (limited to 'gpib.c')
-rw-r--r-- | gpib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |