Skip to content

Commit a55f032

Browse files
committed
Another fix to pass compile tests
1 parent d26c56d commit a55f032

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Inkplate.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,13 @@ class Inkplate : public System, public Graphics
101101
{
102102
return NetworkClient::isConnected();
103103
};
104-
bool getNTPEpoch(time_t *timeEpoch, int timeZone = 0, char *ntpServer = "pool.ntp.org",
104+
// The default parameters for nptServer here are cast to (char*) to keep the compiler happy
105+
bool getNTPEpoch(time_t *timeEpoch, int timeZone = 0, char *ntpServer = (char *)"pool.ntp.org",
105106
int daylightSavingsOffsetHours = 0)
106107
{
107108
return NetworkClient::getNTPEpoch(timeEpoch, timeZone, ntpServer, daylightSavingsOffsetHours);
108109
}
109-
bool getNTPDateTime(tm *dateTime, int timeZone = 0, char *ntpServer = "pool.ntp.org",
110+
bool getNTPDateTime(tm *dateTime, int timeZone = 0, char *ntpServer = (char *)"pool.ntp.org",
110111
int daylightSavingsOffsetHours = 0)
111112
{
112113
return NetworkClient::getNTPDateTime(dateTime, timeZone, ntpServer, daylightSavingsOffsetHours);

0 commit comments

Comments
 (0)