diff options
author | Daniel Jarai <daniel.jarai@bartec-pixavi.com> | 2018-12-14 15:19:41 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-14 15:19:41 -0800 |
commit | a2350a2e3794f64496cc5d660d03899125afa60d (patch) | |
tree | d93746935f306cb3c5d79a97aa78b403356ce0f5 | |
parent | 0510c0f0edfd0f6ea01e5b0dad3035120020fd88 (diff) | |
parent | 784f30c6107470075eca684ec488ad9c643f0ca0 (diff) | |
download | device_google_contexthub-a2350a2e3794f64496cc5d660d03899125afa60d.tar.gz device_google_contexthub-a2350a2e3794f64496cc5d660d03899125afa60d.tar.bz2 device_google_contexthub-a2350a2e3794f64496cc5d660d03899125afa60d.zip |
nanohub: stm32: fix callback error code passed from dmaIsrTeif
am: 784f30c610
Change-Id: I9dbdddffdbfdcef01a393fd8bbe4a5915fe74015
-rw-r--r-- | firmware/os/platform/stm32/dma.c | 2 |
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); } |