mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [49/50] [abbrv] incubator-mynewt-core git commit: stm32f4 hal_spi.c; fix uninitialized return code.
Date Thu, 10 Nov 2016 22:39:56 GMT
stm32f4 hal_spi.c; fix uninitialized return code.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c28fbddf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c28fbddf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c28fbddf

Branch: refs/heads/master
Commit: c28fbddf5dc0f4f007d59c83e0af51784cc1a42d
Parents: bd6933c
Author: Marko Kiiskila <marko@runtime.io>
Authored: Thu Nov 10 14:10:04 2016 -0800
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Thu Nov 10 14:10:38 2016 -0800

----------------------------------------------------------------------
 hw/mcu/stm/stm32f4xx/src/hal_spi.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c28fbddf/hw/mcu/stm/stm32f4xx/src/hal_spi.c
----------------------------------------------------------------------
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_spi.c b/hw/mcu/stm/stm32f4xx/src/hal_spi.c
index f1b868b..9729066 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_spi.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_spi.c
@@ -760,6 +760,7 @@ hal_spi_slave_set_def_tx_val(int spi_num, uint16_t val)
     STM32F4_HAL_SPI_RESOLVE(spi_num, spi);
 
     if (spi->slave) {
+        rc = 0;
         __HAL_DISABLE_INTERRUPTS(sr);
         if (spi->handle.Init.DataSize == SPI_DATASIZE_8BIT) {
             for (i = 0; i < 4; i++) {


Mime
View raw message