File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/weather-forecast/sketch Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments