Skip to content

Commit 3bce004

Browse files
committed
fixup! fixup! update weather-forecast sketch
1 parent 838aa0a commit 3bce004

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/weather-forecast/sketch/sketch.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ void loop() {
2222
String weather_forecast;
2323
bool ok = Bridge.call("get_weather_forecast", city).result(weather_forecast);
2424
if (ok) {
25-
if (sequence_name == "sunny") {
25+
if (weather_forecast == "sunny") {
2626
matrix.loadSequence(sunny);
2727
playRepeat(10);
28-
} else if (sequence_name == "cloudy") {
28+
} else if (weather_forecast == "cloudy") {
2929
matrix.loadSequence(cloudy);
3030
playRepeat(10);
31-
} else if (sequence_name == "rainy") {
31+
} else if (weather_forecast == "rainy") {
3232
matrix.loadSequence(rainy);
3333
playRepeat(20);
34-
} else if (sequence_name == "snowy") {
34+
} else if (weather_forecast == "snowy") {
3535
matrix.loadSequence(snowy);
3636
playRepeat(10);
37-
} else if (sequence_name == "foggy") {
37+
} else if (weather_forecast == "foggy") {
3838
matrix.loadSequence(foggy);
3939
playRepeat(5);
4040
}

0 commit comments

Comments
 (0)