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 2022/04/08 13:00:29 UTC

[mynewt-core] branch master updated: sensor_creator: Fix BMP2800 SPI configuration

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


The following commit(s) were added to refs/heads/master by this push:
     new a4ab27ab0 sensor_creator: Fix BMP2800 SPI configuration
a4ab27ab0 is described below

commit a4ab27ab022a122f5328775fef5630ed3748d677
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Wed Mar 16 14:42:29 2022 +0100

    sensor_creator: Fix BMP2800 SPI configuration
    
    If BMP280 is connected to SPI with bus driver build
    syscfg value for bus name was mismatched in source and yml.
---
 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 0cf1999b9..b208ef875 100644
--- a/hw/sensor/creator/src/sensor_creator.c
+++ b/hw/sensor/creator/src/sensor_creator.c
@@ -261,7 +261,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(BMP280_OFB_SPI_BUS),
+    .node_cfg.bus_name = MYNEWT_VAL(BMP280_OFB_BUS),
     .pin_cs = MYNEWT_VAL(BMP280_OFB_CS),
     .mode = BUS_SPI_MODE_0,
     .data_order = HAL_SPI_MSB_FIRST,