From 612a51c608504f59fcd86c74eedac2903f088a0a Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sat, 12 Sep 2015 12:15:27 +0300 Subject: Add packed_enum option to generator. This can be generally useful for saving RAM, but also makes it easier to test for issue #164. --- generator/proto/nanopb.proto | 3 +++ 1 file changed, 3 insertions(+) (limited to 'generator/proto/nanopb.proto') diff --git a/generator/proto/nanopb.proto b/generator/proto/nanopb.proto index 3f2ed8e0..b8671bbd 100644 --- a/generator/proto/nanopb.proto +++ b/generator/proto/nanopb.proto @@ -51,6 +51,9 @@ message NanoPBOptions { // accesses to variables. optional bool packed_struct = 5 [default = false]; + // Add 'packed' attribute to generated enums. + optional bool packed_enum = 10 [default = false]; + // Skip this message optional bool skip_message = 6 [default = false]; -- cgit 1.2.3-korg