Skip to content

Commit

Permalink
patch build failure on map block compillation (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru authored Aug 3, 2018
1 parent fbc4b9a commit 4d75091
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit IO Arduino
version=2.7.11
version=2.7.12
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library to access Adafruit IO.
Expand Down
30 changes: 15 additions & 15 deletions src/blocks/MapBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@

MapBlock::MapBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f) : AdafruitIO_Block(d, f)
{
historyHours = 0;
tile = "contrast";
historyHours = 0;
tile = "contrast";
}

MapBlock::~MapBlock(){}
MapBlock::~MapBlock() {}

String MapBlock::properties()
{

if( (strcmp(tile, "contrast")!= 0) && (strcmp(tile, "street") !=0) && (strcmp(tile, "sat") != 0)
{
tile = "contrast";
}

String props = "{\"historyHours\":\"";
props += historyHours;
props += "\",\"tile\":\"";
props += tile;
props += "\"}";
if ((strcmp(tile, "contrast") != 0) && (strcmp(tile, "street") != 0) && (strcmp(tile, "sat") != 0))
{
tile = "contrast";
}

return props;
}
String props = "{\"historyHours\":\"";
props += historyHours;
props += "\",\"tile\":\"";
props += tile;
props += "\"}";

return props;
}

0 comments on commit 4d75091

Please sign in to comment.