Fix SMT32 pathc

This commit is contained in:
Renzo 2018-09-23 19:31:56 +02:00
parent d1abfb5f75
commit f996b29458
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ PCF8574::PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunctio
_usingInterrupt = true; _usingInterrupt = true;
}; };
#if !defined(__AVR) && !defined(STM32F1) #if !defined(__AVR) && !defined(__STM32F1__)
/** /**
* Constructor * Constructor
* @param address: i2c address * @param address: i2c address
@ -59,7 +59,7 @@ PCF8574::PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunctio
* wake up i2c controller * wake up i2c controller
*/ */
void PCF8574::begin(){ void PCF8574::begin(){
#if !defined(__AVR) && !defined(STM32F1) #if !defined(__AVR) && !defined(__STM32F1__)
Wire.begin(_sda, _scl); Wire.begin(_sda, _scl);
#else #else
// Default pin for AVR and Arduino STM32 some problem on software emulation // Default pin for AVR and Arduino STM32 some problem on software emulation

View File

@ -92,7 +92,7 @@ public:
private: private:
uint8_t _address; uint8_t _address;
#if !defined(__AVR) && !defined(STM32F1) #if defined(__AVR) || defined(__STM32F1__)
uint8_t _sda; uint8_t _sda;
uint8_t _scl; uint8_t _scl;
#else #else