Skip to content

Commit 0c92c8f

Browse files
authored
Map props patch (#55)
* remove string for props in function * Update mapblock.h to add props string. * Update library.properties
1 parent 4d75091 commit 0c92c8f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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.12
2+
version=2.7.13
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

src/blocks/MapBlock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ String MapBlock::properties()
2727
tile = "contrast";
2828
}
2929

30-
String props = "{\"historyHours\":\"";
30+
props = "{\"historyHours\":\"";
3131
props += historyHours;
3232
props += "\",\"tile\":\"";
3333
props += tile;
3434
props += "\"}";
3535

3636
return props;
37-
}
37+
}

src/blocks/MapBlock.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class MapBlock : public AdafruitIO_Block {
1919
public:
2020
MapBlock(AdafruitIO_Dashboard *d, AdafruitIO_Feed *f);
2121
~MapBlock();
22-
22+
23+
String props;
2324
int historyHours;
2425
const char *tile;
2526

0 commit comments

Comments
 (0)