From a0896965f237d0cbaec9d40e374425971db8c61a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 9 Sep 2016 08:16:28 +0200 Subject: Reindent code and update doc --- src/fig/FIG0.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/fig/FIG0.cpp b/src/fig/FIG0.cpp index 8c26dff..4ac4e5e 100644 --- a/src/fig/FIG0.cpp +++ b/src/fig/FIG0.cpp @@ -980,19 +980,19 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size) FIG0_13_app* app = (FIG0_13_app*)buf; app->setType((*componentFIG0_13)->packet.appType); - if (app->typeLow == FIG0_13_APPTYPE_EPG) { - app->length = 2; - app->xpad = htons(0x0100); - /* xpad used to hold two bytes of EPG profile information - 01 = basic profile - 00 = list terminator */ - } - else { - app->length = 0; - } - buf += 2 + app->length; - remaining -= 2 + app->length; - fig0->Length += 2 + app->length; + if (app->typeLow == FIG0_13_APPTYPE_EPG) { + app->length = 2; + app->xpad = htons(0x0100); + /* xpad used to hold two bytes of EPG profile information + 01 = basic profile + 00 = list terminator */ + } + else { + app->length = 0; + } + buf += 2 + app->length; + remaining -= 2 + app->length; + fig0->Length += 2 + app->length; } } -- cgit v1.2.3