From 8692f49bfc10f3fbe257646dbb6b06677cc88007 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Oct 2018 14:06:52 +0200 Subject: . --- include/driver/soft_i2c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/driver') diff --git a/include/driver/soft_i2c.h b/include/driver/soft_i2c.h index f3ba14f..7960df2 100644 --- a/include/driver/soft_i2c.h +++ b/include/driver/soft_i2c.h @@ -6,7 +6,7 @@ class SoftI2C { SoftI2C(const SoftI2C ©); unsigned char sda, scl; -#if SOFTI2C_PULLUP_EXTERNAL || SOFTI2C_PULLUP_FIXED_GPIO +#if SOFTI2C_PULLUP_EXTERNAL unsigned char sda_pull, scl_pull; #endif @@ -16,7 +16,7 @@ class SoftI2C { unsigned char rx(bool send_ack); public: -#if SOFTI2C_PULLUP_EXTERNAL || SOFTI2C_PULLUP_FIXED_GPIO +#if SOFTI2C_PULLUP_EXTERNAL SoftI2C(unsigned char sda, unsigned char scl, unsigned char sda_pull, unsigned char scl_pull) : sda(sda), scl(scl), sda_pull(sda_pull), scl_pull(scl_pull) {} -- cgit v1.2.3