Skip to content

Change get_timestamp() return type to int64_t to support ARMCC #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void NTPClient::set_server(const char* server, int port) {
nist_server_port = port;
}

time_t NTPClient::get_timestamp(int timeout) {
int64_t NTPClient::get_timestamp(int timeout) {
const time_t TIME1970 = (time_t)2208988800UL;
int ntp_send_values[12] = {0};
int ntp_recv_values[12] = {0};
Expand Down
2 changes: 1 addition & 1 deletion NTPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class NTPClient {
public:
explicit NTPClient(NetworkInterface *interface = NULL);
void set_server(const char* server, int port);
time_t get_timestamp(int timeout = 15000);
int64_t get_timestamp(int timeout = 15000);
void network(NetworkInterface *interface);

private:
Expand Down