You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/12/05 16:42:19 UTC
[mynewt-core] 01/02: hw/drivers/lis2dh12: Fix build error
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit e6d15c1efbb32f66dabdf1802e02e7f5e1c695a9
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Dec 5 17:20:00 2018 +0100
hw/drivers/lis2dh12: Fix build error
---
hw/drivers/sensors/lis2dh12/src/lis2dh12.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/drivers/sensors/lis2dh12/src/lis2dh12.c b/hw/drivers/sensors/lis2dh12/src/lis2dh12.c
index 20042f8..e50f386 100644
--- a/hw/drivers/sensors/lis2dh12/src/lis2dh12.c
+++ b/hw/drivers/sensors/lis2dh12/src/lis2dh12.c
@@ -418,7 +418,7 @@ lis2dh12_spi_writelen(struct sensor_itf *itf, uint8_t addr, uint8_t *payload,
* requested is moret than 1
*/
if (len > 1) {
- addr |= LIS2DH12_SPI_ADR_INC;
+ addr |= LIS2DH12_SPI_ADDR_INC;
}
/* Select the device */