Skip to content

Commit 659edda

Browse files
committed
Adjusted struct declaration
1 parent f2034b6 commit 659edda

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/WundergroundAlerts.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ See more at http://blog.squix.ch
3030

3131
#define MAX_WEATHER_ALERTS 6 // The maximum number of concurrent weather alerts supported by the library
3232

33-
struct WGAlert {
33+
typedef struct WGAlert {
3434
String activeAlerts;
3535
String activeAlertsMessage;
3636
bool activeAlertsMessageTrunc;
@@ -40,7 +40,7 @@ struct WGAlert {
4040
String activeAlertsPhenomena;
4141
String activeAlertsSignificance;
4242
String activeAlertsAttribution;
43-
};
43+
} WGAlert;
4444

4545
class WundergroundAlerts: public JsonListener {
4646
private:

src/WundergroundAstronomy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ See more at http://blog.squix.ch
2828
#include <JsonListener.h>
2929
#include <JsonStreamingParser.h>
3030

31-
struct WGAstronomy {
31+
typedef struct WGAstronomy {
3232
String moonPctIlum;
3333
String moonAge;
3434
String moonPhase;
3535
String sunriseTime;
3636
String sunsetTime;
3737
String moonriseTime;
3838
String moonsetTime;
39-
};
39+
} WGAstronomy;
4040

4141
class WundergroundAstronomy: public JsonListener {
4242
private:

src/WundergroundConditions.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ See more at http://blog.squix.ch
2828
#include <JsonListener.h>
2929
#include <JsonStreamingParser.h>
3030

31-
struct WGConditions {
31+
typedef struct WGConditions {
3232
String currentTemp;
3333
String windSpeed;
3434
String windDir;
@@ -41,9 +41,9 @@ struct WGConditions {
4141
String feelslike;
4242
String UV;
4343
String observationTime;
44-
String date = "-";
45-
String observationDate = "-";
46-
};
44+
String date;
45+
String observationDate;
46+
} WGConditions;
4747

4848
class WundergroundConditions: public JsonListener {
4949
private:

src/WundergroundForecast.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ See more at http://blog.squix.ch
2828
#include <JsonListener.h>
2929
#include <JsonStreamingParser.h>
3030

31-
struct WGForecast {
31+
typedef struct WGForecast {
3232
String forecastIcon;
3333
String forecastTitle;
3434
String forecastLowTemp;
@@ -37,7 +37,7 @@ struct WGForecast {
3737
String forecastMonth;
3838
String forecastText;
3939
String PoP;
40-
};
40+
} WGForecast;
4141

4242
class WundergroundForecast: public JsonListener {
4343
private:

0 commit comments

Comments
 (0)