You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/11/19 21:24:24 UTC
[mynewt-core] 03/04: sensor_creator: Fix BMP280 typo
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 8b2ded3c374082fcd4a7d29dfe28f8f8c4b77c83
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Nov 18 14:30:35 2019 +0100
sensor_creator: Fix BMP280 typo
BME BMP mixup
BME280_OFB_SPI_BUS was used instead of BMP280_OFB_SPI_BUS.
---
hw/sensor/creator/src/sensor_creator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/sensor/creator/src/sensor_creator.c b/hw/sensor/creator/src/sensor_creator.c
index c2497d2..e950da3 100644
--- a/hw/sensor/creator/src/sensor_creator.c
+++ b/hw/sensor/creator/src/sensor_creator.c
@@ -253,7 +253,7 @@ static const struct bus_i2c_node_cfg bmp280_node_cfg = {
#endif
#if MYNEWT_VAL(BMP280_OFB_SPI_NUM) >= 0
struct bus_spi_node_cfg bmp280_node_cfg = {
- .node_cfg.bus_name = MYNEWT_VAL(BME280_OFB_SPI_BUS),
+ .node_cfg.bus_name = MYNEWT_VAL(BMP280_OFB_SPI_BUS),
.pin_cs = MYNEWT_VAL(BMP280_OFB_CS),
.mode = BUS_SPI_MODE_0,
.data_order = HAL_SPI_MSB_FIRST,