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:18 UTC
[mynewt-core] branch master updated (0350849 -> 5826438)
This is an automated email from the ASF dual-hosted git repository.
andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.
from 0350849 hw/drivers/lps33hw: Add SPI support
new e6d15c1 hw/drivers/lis2dh12: Fix build error
new 5826438 sys/log: Fix spurious uninitialized variable varning
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
hw/drivers/sensors/lis2dh12/src/lis2dh12.c | 2 +-
sys/log/full/src/log_shell.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[mynewt-core] 02/02: sys/log: Fix spurious uninitialized variable
varning
Posted by an...@apache.org.
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 5826438d7c187a5e041a49eca76e40cc092c9461
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Dec 5 17:20:22 2018 +0100
sys/log: Fix spurious uninitialized variable varning
GCC 7.3.1 complains about possible uinitialized 'rc' variable in
'shell_log_dump_entry' at 'if (rc < len) {` in optimized build.
This does not seem to be correct, but let's make it happy and
initialize 'rc'.
---
sys/log/full/src/log_shell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/log/full/src/log_shell.c b/sys/log/full/src/log_shell.c
index 0252552..b47e82f 100644
--- a/sys/log/full/src/log_shell.c
+++ b/sys/log/full/src/log_shell.c
@@ -152,7 +152,7 @@ shell_log_dump_entry(struct log *log, struct log_offset *log_offset,
{
char data[128 + 1];
int dlen;
- int rc;
+ int rc = 0;
#if MYNEWT_VAL(LOG_VERSION) > 2
struct CborParser cbor_parser;
struct CborValue cbor_value;
[mynewt-core] 01/02: hw/drivers/lis2dh12: Fix build error
Posted by an...@apache.org.
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 */