From fe29cab4c5169777559687fdff2d8004e9520dec Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 29 Sep 2021 17:37:59 +0000 Subject: [PATCH] Restyled by clang-format --- examples/ota-provider-app/linux/main.cpp | 14 +++--- .../OTAProviderExample.cpp | 44 ++++++++++--------- .../ota-provider-common/OTAProviderExample.h | 14 +++--- 3 files changed, 39 insertions(+), 33 deletions(-) diff --git a/examples/ota-provider-app/linux/main.cpp b/examples/ota-provider-app/linux/main.cpp index 2fffae17e16d77..1a6a05b59a3d06 100644 --- a/examples/ota-provider-app/linux/main.cpp +++ b/examples/ota-provider-app/linux/main.cpp @@ -50,10 +50,10 @@ using chip::Messaging::ExchangeManager; // TODO: this should probably be done dynamically constexpr chip::EndpointId kOtaProviderEndpoint = 0; -constexpr uint16_t kOptionFilepath = 'f'; -constexpr uint16_t kOptionQueryImageBehavior = 'q'; +constexpr uint16_t kOptionFilepath = 'f'; +constexpr uint16_t kOptionQueryImageBehavior = 'q'; constexpr uint16_t kOptionDelayedActionTimeSec = 'd'; -const char * gOtaFilepath = nullptr; +const char * gOtaFilepath = nullptr; // Arbitrary BDX Transfer Params constexpr uint32_t kMaxBdxBlockSize = 1024; @@ -62,7 +62,7 @@ constexpr uint32_t kBdxPollFreqMs = 500; // Global variables used for passing the CLI arguments to the OTAProviderExample object OTAProviderExample::queryImageBehaviorType gQueryImageBehavior = OTAProviderExample::kRespondWithUpdateAvailable; -uint32_t gDelayedActionTimeSec = 0; +uint32_t gDelayedActionTimeSec = 0; bool HandleOptions(const char * aProgram, OptionSet * aOptions, int aIdentifier, const char * aName, const char * aValue) { @@ -105,8 +105,8 @@ bool HandleOptions(const char * aProgram, OptionSet * aOptions, int aIdentifier, retval = false; } break; - case kOptionDelayedActionTimeSec: - gDelayedActionTimeSec = static_cast(strtol(aValue, NULL, 0)); + case kOptionDelayedActionTimeSec: + gDelayedActionTimeSec = static_cast(strtol(aValue, NULL, 0)); break; default: PrintArgError("%s: INTERNAL ERROR: Unhandled option: %s\n", aProgram, aName); @@ -130,7 +130,7 @@ OptionSet cmdLineOptions = { HandleOptions, cmdLineOptionsDef, "PROGRAM OPTIONS" " -q/--QueryImageBehavior \n" " Status value in the Query Image Response\n" " -d/--DelayedActionTimeSec