From 129ed63547905cc8af531c9f283abd14f0a424a2 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 4 Apr 2011 17:33:05 +0000 Subject: [PATCH] Fix warnings. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4832 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/dac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bertos/drv/dac.h b/bertos/drv/dac.h index 0a6ab0bd..bfa53c31 100644 --- a/bertos/drv/dac.h +++ b/bertos/drv/dac.h @@ -77,7 +77,7 @@ typedef struct DacContext DmaConversionIsFinished_t isFinished; DmaStartStreamingFunc_t start; DmaStopFunc_t stop; - DmaCallbackFunc_t callback; + DmaCallbackFunc_t *callback; size_t slice_len; DB(id_t _type); @@ -138,7 +138,7 @@ INLINE void dac_dmaStartStreaming(Dac *dac, void *buf, size_t len, size_t slice_ ASSERT(callback); dac->ctx.callback = callback; - dac->ctx.slicelen = slice_len; + dac->ctx.slice_len = slice_len; dac->ctx.start(dac, buf, len, slice_len); } -- 2.25.1