aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/drivers/device/i2c.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/drivers/device/i2c.h b/apps/drivers/device/i2c.h
index 66c34dd7c..7daba31be 100644
--- a/apps/drivers/device/i2c.h
+++ b/apps/drivers/device/i2c.h
@@ -61,6 +61,11 @@ protected:
unsigned _retries;
/**
+ * The I2C bus number the device is attached to.
+ */
+ int _bus;
+
+ /**
* @ Constructor
*
* @param name Driver name
@@ -123,7 +128,6 @@ protected:
}
private:
- int _bus;
uint16_t _address;
uint32_t _frequency;
struct i2c_dev_s *_dev;