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
/**