Twilight-Logic / AR488

AR488 Arduino GPIB Interface
GNU General Public License v3.0
215 stars 62 forks source link

Compile error, Mega 2560 + Arduino IDE 1.8.16 #25

Closed Xorlent closed 2 years ago

Xorlent commented 2 years ago

Hello, When attempting a first-time compile with MEGA 2560 board selected, I receive this error. I looked through the documentation and prior issues, but was unable to find a match for what I'm facing. Thanks very much in advance!

AR488_Layouts.cpp:1241:3: error: 'mcpPinAssertedReg' was not declared in this scope mcpPinAssertedReg = 0; ^~~~~

AR488_Layouts.cpp:1310:7: error: 'mcpPinAssertedReg' was not declared in this scope mcpPinAssertedReg = mcpByteRead(MCPINTCAPA); ^~~~~ AR488_Layouts.cpp:1314:39: error: 'gpibsig' was not declared in this scope return (mcpPinAssertedReg & (1<<gpibsig)); ^~~ exit status 1 'mcpPinAssertedReg' was not declared in this scope

Xorlent commented 2 years ago

I found the directive that was indicating use of an MCP chip; it seems the checked in code has this enabled for the MEGA board. Thanks.

Twilight-Logic commented 2 years ago

Thank you for reporting this. I had been using this board to develop support for MCP23x17 chips and the setting to enable MCP23017 support had inadvertently been left enabled. However, there was also an underlying problem that was causing the compile error. The problem has now been corrected and the relevant enable flag commented out of the default config.

Xorlent commented 2 years ago

Thanks for the follow-up, I will grab the latest code!