Fixed indentations using astyle (#890)

This commit is contained in:
Patrick Fallberg
2017-07-07 14:36:14 +02:00
committed by GitHub
parent a941827157
commit 3e75b52c33
8 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -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) {
+2 -1
View File
@@ -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) {
+2 -1
View File
@@ -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
/**
+3 -3
View File
@@ -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
}
@@ -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
}
@@ -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();
}
+3 -3
View File
@@ -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
}
@@ -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
}