From 784f30c6107470075eca684ec488ad9c643f0ca0 Mon Sep 17 00:00:00 2001 From: Daniel Jarai Date: Thu, 19 Jul 2018 12:19:12 +0200 Subject: 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 --- firmware/os/platform/stm32/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3