From df7234fd8b8779c9973b19b5a8fb22ee2e903982 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Thu, 28 Aug 2014 21:23:28 +0300 Subject: Fix cyclic messages support in generator. Beginnings of test. Update issue 130 Status: Started --- generator/nanopb_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator/nanopb_generator.py') diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 79dd1989..56dfdb08 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -546,7 +546,7 @@ class Message: def get_dependencies(self): '''Get list of type names that this structure refers to.''' - return [str(field.ctype) for field in self.fields] + return [str(field.ctype) for field in self.fields if field.allocation == 'STATIC'] def __str__(self): result = 'typedef struct _%s {\n' % self.name -- cgit 1.2.3-korg