Skip to content

Commit

Permalink
Fixed indentations using astyle (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallberg committed Jul 7, 2017
1 parent a941827 commit 3e75b52
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/MyMessage.cpp
Expand Up @@ -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<const char *>(value)), (size_t)MAX_PAYLOAD);
: min(strlen_P(reinterpret_cast<const char *>(value)), (size_t)MAX_PAYLOAD);
miSetLength(length);
miSetPayloadType(P_STRING);
if (length) {
Expand Down
3 changes: 2 additions & 1 deletion core/MySensorsCore.cpp
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion core/MySensorsCore.h
Expand Up @@ -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

/**
Expand Down
6 changes: 3 additions & 3 deletions examples/GatewayESP8266/GatewayESP8266.ino
Expand Up @@ -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
}

Expand Up @@ -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
}

6 changes: 3 additions & 3 deletions examples/GatewayESP8266OTA/GatewayESP8266OTA.ino
Expand Up @@ -136,7 +136,7 @@

void setup()
{
// Setup locally attached sensors
// Setup locally attached sensors
ArduinoOTA.onStart([]() {
debug("ArduinoOTA start\n");
});
Expand Down Expand Up @@ -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();
}

6 changes: 3 additions & 3 deletions examples/GatewayW5100/GatewayW5100.ino
Expand Up @@ -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
}

6 changes: 3 additions & 3 deletions examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino
Expand Up @@ -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
}

0 comments on commit 3e75b52

Please sign in to comment.