Skip to content

Commit

Permalink
Map props patch (#55)
Browse files Browse the repository at this point in the history
* remove string for props in function

* Update mapblock.h to add props string. 

* Update library.properties
  • Loading branch information
brentru authored Aug 3, 2018
1 parent 4d75091 commit 0c92c8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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.12
version=2.7.13
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library to access Adafruit IO.
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/MapBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ String MapBlock::properties()
tile = "contrast";
}

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

return props;
}
}
3 changes: 2 additions & 1 deletion src/blocks/MapBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class MapBlock : public AdafruitIO_Block {
public:
MapBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f);
~MapBlock();


String props;
int historyHours;
const char *tile;

Expand Down

0 comments on commit 0c92c8f

Please sign in to comment.