You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/11/10 22:10:49 UTC

incubator-mynewt-core git commit: stm32f4 hal_spi.c; fix uninitialized return code.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop bd6933cdc -> c28fbddf5


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/develop
Commit: c28fbddf5dc0f4f007d59c83e0af51784cc1a42d
Parents: bd6933c
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Nov 10 14:10:04 2016 -0800
Committer: Marko Kiiskila <ma...@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++) {