mattairtech / EEPROM_CAT25

Driver for On Semiconductor CAT25 SPI EEPROM chips for AVR, SAM3X (Due), and SAM M0+ (SAMD, SAML, SAMC) microcontrollers on the Arduino platform.
6 stars 4 forks source link

error: operator '||' has no right operand #8

Open crystalcave opened 3 years ago

crystalcave commented 3 years ago

I'm using Arduino 33 IOT on Arduino 1.8.13. I'm trying to compile EEPROM_Example ver 1.0.2 But I received this error `In file included from /Users/darioconcilio/Documents/GIT/magikboard/EEPROM_Example/EEPROM_Example.ino:44:0: /Users/darioconcilio/Documents/GIT/magikboard/libraries/EEPROM_CAT25/src/EEPROM_CAT25.h:33:59: error: operator '||' has no right operand

if (!defined(SPI_HAS_TRANSACTION) || SPI_HAS_TRANSACTION == 0)

                                                                                                               ^~

exit status 1 Errore durante la compilazione per la scheda Arduino NANO 33 IoT.` What's happen?

JustEnoughDucks commented 2 years ago

I also get this same error. It seems as though the maintainer is MIA though. Hasn't worked on anything for years and his web page is down.

It could be that SPI_HAS_TRANSACTION is an empty definition. Might need a following #undef and #define. Maybe I can dive into it more later.