From 8fa2bcdad9edb41d01c9ccf1ebbbe135713bf9c0 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 30 Sep 2018 05:38:03 +0000 Subject: Fixed small errors in pipes and pipes factory. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12307 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/lib/src/chfactory.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'os/lib/src/chfactory.c') diff --git a/os/lib/src/chfactory.c b/os/lib/src/chfactory.c index 149f673d8..a40984ac4 100644 --- a/os/lib/src/chfactory.c +++ b/os/lib/src/chfactory.c @@ -271,6 +271,9 @@ void _factory_init(void) { #if CH_CFG_FACTORY_OBJ_FIFOS == TRUE dyn_list_init(&ch_factory.fifo_list); #endif +#if CH_CFG_FACTORY_PIPES == TRUE + dyn_list_init(&ch_factory.pipe_list); +#endif } #if (CH_CFG_FACTORY_OBJECTS_REGISTRY == TRUE) || defined(__DOXIGEN__) @@ -775,7 +778,7 @@ dyn_pipe_t *chFactoryFindPipe(const char *name) { F_LOCK(); - dpp = (dyn_pipe_t *)dyn_find_object(name, &ch_factory.fifo_list); + dpp = (dyn_pipe_t *)dyn_find_object(name, &ch_factory.pipe_list); F_UNLOCK(); -- cgit v1.2.3