diff options
author | Daniel Jarai <daniel.jarai@bartec-pixavi.com> | 2018-07-19 12:19:12 +0200 |
---|---|---|
committer | Daniel Jarai <daniel.jarai@bartec-pixavi.com> | 2018-12-14 17:53:17 +0100 |
commit | 784f30c6107470075eca684ec488ad9c643f0ca0 (patch) | |
tree | d93746935f306cb3c5d79a97aa78b403356ce0f5 | |
parent | c8917ff19187ba6591ae3e8939f9420511a17619 (diff) | |
download | device_google_contexthub-784f30c6107470075eca684ec488ad9c643f0ca0.tar.gz device_google_contexthub-784f30c6107470075eca684ec488ad9c643f0ca0.tar.bz2 device_google_contexthub-784f30c6107470075eca684ec488ad9c643f0ca0.zip |
nanohub: stm32: fix callback error code passed from dmaIsrTeif
Error codes should be negative, keeping this consistent with the rest of
the firmware.
Change-Id: I8aaa04d00a2e77c06eee9ff764cd2348192bcc6f
-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); } |