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 2018/12/12 13:09:39 UTC

[mynewt-core] 01/06: bmp280/bme280: Update syscfg description

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 3ade5d2c99608bb89db21482987ebf20d23f8299
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Dec 3 15:32:14 2018 +0100

    bmp280/bme280: Update syscfg description
    
    syscfg description for BMx280_SPEC_CALC was cryptic.
    Now it explains clearly what to expect when value is changed.
    It switches between floating point and integer arithmetic used
    for compensation calculations.
---
 hw/drivers/sensors/bme280/syscfg.yml | 4 +++-
 hw/drivers/sensors/bmp280/syscfg.yml | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/hw/drivers/sensors/bme280/syscfg.yml b/hw/drivers/sensors/bme280/syscfg.yml
index f26087e..054e890 100644
--- a/hw/drivers/sensors/bme280/syscfg.yml
+++ b/hw/drivers/sensors/bme280/syscfg.yml
@@ -34,7 +34,9 @@ syscfg.defs:
         description: 'Enable shell support for the BME280'
         value: 0
     BME280_SPEC_CALC:
-        description: 'BME280 Spec calculation insetad of built in one'
+        description:
+            When set to 1 compensation functions use double precission floating point arithmetic recomended by specification.
+            When set to 0 compensation functions use integer arithmetic.
         value : 1
     BME280_LOG_MODULE:
         description: 'Numeric module ID to use for BME280 log messages'
diff --git a/hw/drivers/sensors/bmp280/syscfg.yml b/hw/drivers/sensors/bmp280/syscfg.yml
index ca90ade..8265acd 100644
--- a/hw/drivers/sensors/bmp280/syscfg.yml
+++ b/hw/drivers/sensors/bmp280/syscfg.yml
@@ -37,7 +37,9 @@ syscfg.defs:
         description: 'Enable shell support for the BMP280'
         value: 0
     BMP280_SPEC_CALC:
-        description: 'BMP280 Spec calculation instead of built in one'
+        description:
+            When set to 1 compensation functions use double precission floating point arithmetic recomended by specification.
+            When set to 0 compensation functions use integer arithmetic.
         value : 1
     BMP280_ITF_LOCK_TMO:
         description: 'BMP280 interface lock timeout in milliseconds'