From 3e75b52c33b06c70d60eb691bd127e2f585a0c87 Mon Sep 17 00:00:00 2001 From: Patrick Fallberg Date: Fri, 7 Jul 2017 14:36:14 +0200 Subject: [PATCH] Fixed indentations using astyle (#890) --- core/MyMessage.cpp | 2 +- core/MySensorsCore.cpp | 3 ++- core/MySensorsCore.h | 3 ++- examples/GatewayESP8266/GatewayESP8266.ino | 6 +++--- .../GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino | 6 +++--- examples/GatewayESP8266OTA/GatewayESP8266OTA.ino | 6 +++--- examples/GatewayW5100/GatewayW5100.ino | 6 +++--- examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino | 6 +++--- 8 files changed, 20 insertions(+), 18 deletions(-) diff --git a/core/MyMessage.cpp b/core/MyMessage.cpp index 73ba225..1cea592 100644 --- a/core/MyMessage.cpp +++ b/core/MyMessage.cpp @@ -253,7 +253,7 @@ MyMessage& MyMessage::set(const char* value) MyMessage& MyMessage::set(const __FlashStringHelper* value) { uint8_t length = value == NULL ? 0 - : min(strlen_P(reinterpret_cast(value)), (size_t)MAX_PAYLOAD); + : min(strlen_P(reinterpret_cast(value)), (size_t)MAX_PAYLOAD); miSetLength(length); miSetPayloadType(P_STRING); if (length) { diff --git a/core/MySensorsCore.cpp b/core/MySensorsCore.cpp index 045ea02..a126c4a 100644 --- a/core/MySensorsCore.cpp +++ b/core/MySensorsCore.cpp @@ -359,7 +359,8 @@ bool sendSketchInfo(const char *name, const char *version, const bool ack) } #if !defined(__linux__) -bool sendSketchInfo(const __FlashStringHelper *name, const __FlashStringHelper *version, const bool ack) +bool sendSketchInfo(const __FlashStringHelper *name, const __FlashStringHelper *version, + const bool ack) { bool result = true; if (name) { diff --git a/core/MySensorsCore.h b/core/MySensorsCore.h index 4a9be53..3e9a809 100644 --- a/core/MySensorsCore.h +++ b/core/MySensorsCore.h @@ -146,7 +146,8 @@ bool present(const uint8_t sensorId, const uint8_t sensorType, const char *descr */ bool sendSketchInfo(const char *name, const char *version, const bool ack = false); #if !defined(__linux__) -bool sendSketchInfo(const __FlashStringHelper *name, const __FlashStringHelper *version, const bool ack = false); +bool sendSketchInfo(const __FlashStringHelper *name, const __FlashStringHelper *version, + const bool ack = false); #endif /** diff --git a/examples/GatewayESP8266/GatewayESP8266.ino b/examples/GatewayESP8266/GatewayESP8266.ino index 9d1f56e..2e0b9b8 100644 --- a/examples/GatewayESP8266/GatewayESP8266.ino +++ b/examples/GatewayESP8266/GatewayESP8266.ino @@ -132,16 +132,16 @@ void setup() { - // Setup locally attached sensors + // Setup locally attached sensors } void presentation() { - // Present locally attached sensors here + // Present locally attached sensors here } void loop() { - // Send locally attached sensors data here + // Send locally attached sensors data here } diff --git a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino index 0e74a85..01246c9 100644 --- a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino +++ b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino @@ -124,16 +124,16 @@ void setup() { - // Setup locally attached sensors + // Setup locally attached sensors } void presentation() { - // Present locally attached sensors here + // Present locally attached sensors here } void loop() { - // Send locally attech sensors data here + // Send locally attech sensors data here } diff --git a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino index 3c52f9d..573525b 100644 --- a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino +++ b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino @@ -136,7 +136,7 @@ void setup() { - // Setup locally attached sensors + // Setup locally attached sensors ArduinoOTA.onStart([]() { debug("ArduinoOTA start\n"); }); @@ -165,12 +165,12 @@ void setup() void presentation() { - // Present locally attached sensors here + // Present locally attached sensors here } void loop() { - // Send locally attech sensors data here + // Send locally attech sensors data here ArduinoOTA.handle(); } diff --git a/examples/GatewayW5100/GatewayW5100.ino b/examples/GatewayW5100/GatewayW5100.ino index d8cc057..b5bb906 100644 --- a/examples/GatewayW5100/GatewayW5100.ino +++ b/examples/GatewayW5100/GatewayW5100.ino @@ -123,16 +123,16 @@ void setup() { - // Setup locally attached sensors + // Setup locally attached sensors } void presentation() { - // Present locally attached sensors here + // Present locally attached sensors here } void loop() { - // Send locally attached sensors data here + // Send locally attached sensors data here } diff --git a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino index e65ddef..a0fe25c 100644 --- a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino +++ b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino @@ -138,16 +138,16 @@ void setup() { - // Setup locally attached sensors + // Setup locally attached sensors } void presentation() { - // Present locally attached sensors here + // Present locally attached sensors here } void loop() { - // Send locally attached sensors data here + // Send locally attached sensors data here }