summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jarai <daniel.jarai@bartec-pixavi.com>2018-12-14 15:36:48 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-14 15:36:48 -0800
commit05dcb4b0cebd328346333128c2cb9d72257fc3ec (patch)
treefec482899063e378b1359b3b37802d6274e39cf3
parentf7df35315c4dfef86d9c5840e8e51b15eb147f7f (diff)
parent09641437666fc7e3e394f6ec591ae786daddcf17 (diff)
downloaddevice_google_contexthub-05dcb4b0cebd328346333128c2cb9d72257fc3ec.tar.gz
device_google_contexthub-05dcb4b0cebd328346333128c2cb9d72257fc3ec.tar.bz2
device_google_contexthub-05dcb4b0cebd328346333128c2cb9d72257fc3ec.zip
nanohub: stm32: fix callback error code passed from dmaIsrTeif am: 784f30c610 am: a2350a2e37
am: 0964143766 Change-Id: I49582cc58428e9ba27c1e25b88e1d549c618e85c
-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);
}