diff options
-rw-r--r-- | gpib.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -416,8 +416,6 @@ static void TNT_Gen_Error(int code) /*----------------------------------------------------------------------------------------------------------*/ void GPIB_initialize(void) { - int i; - INTERFACE_STATUS=0; /* Initialize Globals to zero */ INTERFACE_ERROR=0; DATA_COUNT=0; @@ -972,7 +970,7 @@ unsigned int GPIB_get_ESE () unsigned int GPIB_get_STB () { if (!is_gpib) { - return; + return 0; } return (TNT_In(R_spsr)&0xbf) | (((TNT_In(R_spsr)&0xbf) & MR_4882_status[SRE])?0x40:0); |