Skip to content

Commit 4d75091

Browse files
authored
patch build failure on map block compillation (#54)
1 parent fbc4b9a commit 4d75091

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=2.7.11
2+
version=2.7.12
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

src/blocks/MapBlock.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313

1414
MapBlock::MapBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f) : AdafruitIO_Block(d, f)
1515
{
16-
historyHours = 0;
17-
tile = "contrast";
16+
historyHours = 0;
17+
tile = "contrast";
1818
}
1919

20-
MapBlock::~MapBlock(){}
20+
MapBlock::~MapBlock() {}
2121

2222
String MapBlock::properties()
2323
{
24-
25-
if( (strcmp(tile, "contrast")!= 0) && (strcmp(tile, "street") !=0) && (strcmp(tile, "sat") != 0)
26-
{
27-
tile = "contrast";
28-
}
2924

30-
String props = "{\"historyHours\":\"";
31-
props += historyHours;
32-
props += "\",\"tile\":\"";
33-
props += tile;
34-
props += "\"}";
25+
if ((strcmp(tile, "contrast") != 0) && (strcmp(tile, "street") != 0) && (strcmp(tile, "sat") != 0))
26+
{
27+
tile = "contrast";
28+
}
3529

36-
return props;
37-
}
30+
String props = "{\"historyHours\":\"";
31+
props += historyHours;
32+
props += "\",\"tile\":\"";
33+
props += tile;
34+
props += "\"}";
35+
36+
return props;
37+
}

0 commit comments

Comments
 (0)