From 25b92c5b4e154130bf0787009046ea60175d28e8 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Tue, 27 Jan 2015 17:47:25 +0200 Subject: Fix generator bug when oneof is first field in a message. Added test case for the same. Update issue 142 Status: FixedInGit --- generator/nanopb_generator.py | 1 - 1 file changed, 1 deletion(-) (limited to 'generator/nanopb_generator.py') diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 520824ce..4c01502c 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -633,7 +633,6 @@ class OneOf(Field): return '\n'.join([f.tags() for f in self.fields]) def pb_field_t(self, prev_field_name): - prev_field_name = prev_field_name or self.name result = ',\n'.join([f.pb_field_t(prev_field_name) for f in self.fields]) return result -- cgit 1.2.3-korg