Rename SPI class to avoid conflict (good?)

This commit is contained in:
Scott Lahteine 2017-09-15 20:47:04 -05:00
parent 51f195e698
commit 9c21191f74
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
#include <stdint.h>
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
class SPI {
class SPIclass {
static SoftSPI<MisoPin, MosiPin, SckPin> softSPI;
public:
FORCE_INLINE static void init() { softSPI.begin(); }
@ -38,7 +38,7 @@ class SPI {
// Hardware SPI
template<>
class SPI<MISO_PIN, MOSI_PIN, SCK_PIN> {
class SPIclass<MISO_PIN, MOSI_PIN, SCK_PIN> {
public:
FORCE_INLINE static void init() {
OUT_WRITE(SCK_PIN, LOW);

View File

@ -981,7 +981,7 @@ void Temperature::updateTemperaturesFromRawValues() {
#ifndef MAX6675_DO_PIN
#define MAX6675_DO_PIN MISO_PIN
#endif
SPI<MAX6675_DO_PIN, MOSI_PIN, MAX6675_SCK_PIN> max6675_spi;
SPIclass<MAX6675_DO_PIN, MOSI_PIN, MAX6675_SCK_PIN> max6675_spi;
#endif
/**