Fixed indentations using astyle (#890)
This commit is contained in:
+1
-1
@@ -253,7 +253,7 @@ MyMessage& MyMessage::set(const char* value)
|
|||||||
MyMessage& MyMessage::set(const __FlashStringHelper* value)
|
MyMessage& MyMessage::set(const __FlashStringHelper* value)
|
||||||
{
|
{
|
||||||
uint8_t length = value == NULL ? 0
|
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);
|
miSetLength(length);
|
||||||
miSetPayloadType(P_STRING);
|
miSetPayloadType(P_STRING);
|
||||||
if (length) {
|
if (length) {
|
||||||
|
|||||||
@@ -359,7 +359,8 @@ bool sendSketchInfo(const char *name, const char *version, const bool ack)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__linux__)
|
#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;
|
bool result = true;
|
||||||
if (name) {
|
if (name) {
|
||||||
|
|||||||
@@ -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);
|
bool sendSketchInfo(const char *name, const char *version, const bool ack = false);
|
||||||
#if !defined(__linux__)
|
#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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -132,16 +132,16 @@
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
// Setup locally attached sensors
|
// Setup locally attached sensors
|
||||||
}
|
}
|
||||||
|
|
||||||
void presentation()
|
void presentation()
|
||||||
{
|
{
|
||||||
// Present locally attached sensors here
|
// Present locally attached sensors here
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// Send locally attached sensors data here
|
// Send locally attached sensors data here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -124,16 +124,16 @@
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
// Setup locally attached sensors
|
// Setup locally attached sensors
|
||||||
}
|
}
|
||||||
|
|
||||||
void presentation()
|
void presentation()
|
||||||
{
|
{
|
||||||
// Present locally attached sensors here
|
// Present locally attached sensors here
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// Send locally attech sensors data here
|
// Send locally attech sensors data here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
// Setup locally attached sensors
|
// Setup locally attached sensors
|
||||||
ArduinoOTA.onStart([]() {
|
ArduinoOTA.onStart([]() {
|
||||||
debug("ArduinoOTA start\n");
|
debug("ArduinoOTA start\n");
|
||||||
});
|
});
|
||||||
@@ -165,12 +165,12 @@ void setup()
|
|||||||
|
|
||||||
void presentation()
|
void presentation()
|
||||||
{
|
{
|
||||||
// Present locally attached sensors here
|
// Present locally attached sensors here
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// Send locally attech sensors data here
|
// Send locally attech sensors data here
|
||||||
ArduinoOTA.handle();
|
ArduinoOTA.handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,16 +123,16 @@
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
// Setup locally attached sensors
|
// Setup locally attached sensors
|
||||||
}
|
}
|
||||||
|
|
||||||
void presentation()
|
void presentation()
|
||||||
{
|
{
|
||||||
// Present locally attached sensors here
|
// Present locally attached sensors here
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// Send locally attached sensors data here
|
// Send locally attached sensors data here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138,16 +138,16 @@
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
// Setup locally attached sensors
|
// Setup locally attached sensors
|
||||||
}
|
}
|
||||||
|
|
||||||
void presentation()
|
void presentation()
|
||||||
{
|
{
|
||||||
// Present locally attached sensors here
|
// Present locally attached sensors here
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// Send locally attached sensors data here
|
// Send locally attached sensors data here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user