Browse Source

Rename SPI class to avoid conflict (good?)

pull/1/head
Scott Lahteine 7 years ago
parent
commit
9c21191f74
  1. 4
      Marlin/src/libs/private_spi.h
  2. 2
      Marlin/src/module/temperature.cpp

4
Marlin/src/libs/private_spi.h

@ -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);

2
Marlin/src/module/temperature.cpp

@ -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
/**

Loading…
Cancel
Save