mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
allows global object instances be switch off with defines (#2344)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
bd01e44c76
commit
18297458be
@ -33,8 +33,6 @@ typedef union {
|
||||
};
|
||||
} spiClk_t;
|
||||
|
||||
SPIClass SPI;
|
||||
|
||||
SPIClass::SPIClass() {
|
||||
useHwCs = false;
|
||||
}
|
||||
@ -486,3 +484,6 @@ void SPIClass::transferBytes_(uint8_t * out, uint8_t * in, uint8_t size) {
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SPI)
|
||||
SPIClass SPI;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user