From 2adfd321e94f0324fe428d8436339b37a4dee9c7 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 10 Mar 2018 12:46:50 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11683 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/ex/ST/hts221.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os') diff --git a/os/ex/ST/hts221.c b/os/ex/ST/hts221.c index 735c8f7bc..a0367da23 100644 --- a/os/ex/ST/hts221.c +++ b/os/ex/ST/hts221.c @@ -46,6 +46,7 @@ /* Driver local functions. */ /*===========================================================================*/ +#if (HTS221_USE_I2C) || defined(__DOXYGEN__) /** * @brief Reads registers value using I2C. * @pre The I2C interface must be initialized and the driver started. @@ -88,6 +89,7 @@ static msg_t hts221I2CWriteRegister(I2CDriver *i2cp, uint8_t* txbuf, size_t n) { return i2cMasterTransmitTimeout(i2cp, HTS221_SAD, txbuf, n + 1, NULL, 0, TIME_INFINITE); } +#endif /* HTS221_USE_I2C */ /** * @brief Computes biases and sensitivities starting from data stored in -- cgit v1.2.3