summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jarai <daniel.jarai@bartec-pixavi.com>2018-12-14 15:27:44 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-14 15:27:44 -0800
commit09641437666fc7e3e394f6ec591ae786daddcf17 (patch)
treed93746935f306cb3c5d79a97aa78b403356ce0f5
parent8cc4645009e6bc1acaa4c8fa3e679232adac5656 (diff)
parenta2350a2e3794f64496cc5d660d03899125afa60d (diff)
downloaddevice_google_contexthub-09641437666fc7e3e394f6ec591ae786daddcf17.tar.gz
device_google_contexthub-09641437666fc7e3e394f6ec591ae786daddcf17.tar.bz2
device_google_contexthub-09641437666fc7e3e394f6ec591ae786daddcf17.zip
nanohub: stm32: fix callback error code passed from dmaIsrTeif am: 784f30c610
am: a2350a2e37 Change-Id: I8035ec6d33e3ce9267531b2ecaa38af5af7d5a8e
-rw-r--r--firmware/os/platform/stm32/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/os/platform/stm32/dma.c b/firmware/os/platform/stm32/dma.c
index 6813b256..77237e5a 100644
--- a/firmware/os/platform/stm32/dma.c
+++ b/firmware/os/platform/stm32/dma.c
@@ -199,7 +199,7 @@ static void dmaIsrTeif(uint8_t busId, uint8_t stream)
dmaStop(busId, stream);
uint16_t oldTid = osSetCurrentTid(state->tid);
- state->callback(state->cookie, regs->NDTR, EIO);
+ state->callback(state->cookie, regs->NDTR, -EIO);
osSetCurrentTid(oldTid);
}