Skip to content

Commit

Permalink
i2c+spi: improved auto-disable #ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
plan44 committed Mar 1, 2018
1 parent 805e91a commit ada730f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i2c.cpp
Expand Up @@ -30,7 +30,7 @@
#include "i2c.hpp"

// locally disable actual functionality on unsupported platforms (but still provide console output dummies)
#if !defined(DISABLE_I2C) && (defined(__APPLE__) || P44_BUILD_DIGI) && !P44_BUILD_RPI
#if !defined(DISABLE_I2C) && (defined(__APPLE__) || P44_BUILD_DIGI) && !P44_BUILD_RPI && !P44_BUILD_OW
#define DISABLE_I2C 1
#endif

Expand Down
4 changes: 2 additions & 2 deletions spi.cpp
Expand Up @@ -30,7 +30,7 @@
#include "spi.hpp"

// locally disable actual functionality on unsupported platforms (but still provide console output dummies)
#if !defined(DISABLE_SPI) && (defined(__APPLE__) || P44_BUILD_DIGI) && !P44_BUILD_RPI
#if !defined(DISABLE_SPI) && (defined(__APPLE__) || P44_BUILD_DIGI) && !P44_BUILD_RPI && !P44_BUILD_OW
#define DISABLE_SPI 1
#endif

Expand All @@ -40,7 +40,7 @@ extern "C" {
#include <linux/spi/spidev.h>
}
#else
#warning "No SPI supported on this platform - just showing calls in focus debug output"
#warning "No SPI supported on this platform - just showing calls in focus debug output"
#endif


Expand Down

0 comments on commit ada730f

Please sign in to comment.